summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-07-26 15:53:01 +0200
committerRémi Verschelde <rverschelde@gmail.com>2020-07-26 16:03:11 +0200
commita3a980eb0d026d1086b65d5c33f2ec7dd63ff742 (patch)
treeff9a2cc0cb8c043b00225153cb54c244df0a8b13 /SConstruct
parentdf6f867806cd450f757a023e5e78adbf80246bc2 (diff)
SCons: Build tests/ and main/ in cloned environments
Allows switching `tests=yes`/`no` and rebuilding only tests and main, instead of the whole engine. Co-authored-by: Andrii Doroshenko (Xrayez) <xrayez@gmail.com>
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct6
1 files changed, 0 insertions, 6 deletions
diff --git a/SConstruct b/SConstruct
index 98438d2c60..857daf7b0e 100644
--- a/SConstruct
+++ b/SConstruct
@@ -593,8 +593,6 @@ if selected_platform in platform_list:
env.Append(CPPDEFINES=["PTRCALL_ENABLED"])
if env["tools"]:
env.Append(CPPDEFINES=["TOOLS_ENABLED"])
- if env["tests"]:
- env.Append(CPPDEFINES=["TESTS_ENABLED"])
if env["disable_3d"]:
if env["tools"]:
print(
@@ -650,10 +648,6 @@ if selected_platform in platform_list:
}
)
- # Enable test framework globally and inform it of configuration method.
- if env["tests"]:
- env.Append(CPPDEFINES=["DOCTEST_CONFIG_IMPLEMENT"])
-
scons_cache_path = os.environ.get("SCONS_CACHE")
if scons_cache_path != None:
CacheDir(scons_cache_path)