[SCons] Fix msvc, linux-clang, add version check.

This commit is contained in:
Fabio Alessandrelli
2022-07-04 17:50:54 +02:00
parent 794dea0dd7
commit 7901986dcf
4 changed files with 12 additions and 10 deletions

View File

@@ -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'"])