summaryrefslogtreecommitdiffstats
path: root/tools/linux.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/linux.py')
-rw-r--r--tools/linux.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/linux.py b/tools/linux.py
index 6f89d81..df8a78e 100644
--- a/tools/linux.py
+++ b/tools/linux.py
@@ -1,4 +1,5 @@
from SCons.Variables import *
+from SCons.Tool import clang, clangxx
def options(opts):
@@ -11,8 +12,8 @@ def exists(env):
def generate(env):
if env["use_llvm"]:
- base = env.Tool("clang")
- base.generate(env)
+ clang.generate(env)
+ clangxx.generate(env)
env.Append(CCFLAGS=["-fPIC", "-Wwrite-strings"])
env.Append(LINKFLAGS=["-Wl,-R,'$$ORIGIN'"])