summaryrefslogtreecommitdiffstats
path: root/tools/linux.py
diff options
context:
space:
mode:
authorDavid Snopek <dsnopek@gmail.com>2024-02-16 17:13:48 -0600
committerGitHub <noreply@github.com>2024-02-16 17:13:48 -0600
commita6d939334166602b85ee4d28c0daa1c87c9fba02 (patch)
tree21093e52e49fd3f70154a3e7523933c53953f17b /tools/linux.py
parent620104e700706091c33efa033bf96c687e2394ee (diff)
parent16df4bff300b1e3ec6256936802ece4a158a28be (diff)
downloadredot-cpp-a6d939334166602b85ee4d28c0daa1c87c9fba02.tar.gz
Merge pull request #1392 from Faless/build/targets_no_more
[SCons] Split `targets.py`, apply flags from tools
Diffstat (limited to 'tools/linux.py')
-rw-r--r--tools/linux.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/linux.py b/tools/linux.py
index 823b66e..1783e06 100644
--- a/tools/linux.py
+++ b/tools/linux.py
@@ -1,3 +1,4 @@
+import common_compiler_flags
from SCons.Variables import *
from SCons.Tool import clang, clangxx
@@ -14,7 +15,7 @@ def generate(env):
if env["use_llvm"]:
clang.generate(env)
clangxx.generate(env)
- elif env["use_hot_reload"]:
+ elif env.use_hot_reload:
# Required for extensions to truly unload.
env.Append(CXXFLAGS=["-fno-gnu-unique"])
@@ -37,3 +38,5 @@ def generate(env):
env.Append(LINKFLAGS=["-march=rv64gc"])
env.Append(CPPDEFINES=["LINUX_ENABLED", "UNIX_ENABLED"])
+
+ common_compiler_flags.generate(env)