mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-02-02 10:41:05 +00:00
Only use submodule if present
Enabling the USE_CRYPTO_SUBMODULE option causes problems if the crypto submodule isn't present. For example, when building mbed-crypto as a submodule, it should use error.c from the parent project if USE_CRYPTO_SUBMODULE is set. However if the parent project isn't present, then the build will fail. Only enable it if the submodule actually exists.
This commit is contained in:
parent
75d9a333ce
commit
d2dba36f44
|
@ -148,7 +148,8 @@ class AbiChecker(object):
|
||||||
my_environment = os.environ.copy()
|
my_environment = os.environ.copy()
|
||||||
my_environment["CFLAGS"] = "-g -Og"
|
my_environment["CFLAGS"] = "-g -Og"
|
||||||
my_environment["SHARED"] = "1"
|
my_environment["SHARED"] = "1"
|
||||||
my_environment["USE_CRYPTO_SUBMODULE"] = "1"
|
if os.path.exists(os.path.join(git_worktree_path, "crypto")):
|
||||||
|
my_environment["USE_CRYPTO_SUBMODULE"] = "1"
|
||||||
make_output = subprocess.check_output(
|
make_output = subprocess.check_output(
|
||||||
[self.make_command, "lib"],
|
[self.make_command, "lib"],
|
||||||
env=my_environment,
|
env=my_environment,
|
||||||
|
|
Loading…
Reference in a new issue