mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
SCons: Fix usage of LD when we meant LINK
Also made LINK and CXXFLAGS configurable as command line options. Note that LINK currently expects the *compiler* that will be used for linking and will call its configured linker behind the scenes (so g++, clang++, etc., not ld.gold). See #15364 for details.
This commit is contained in:
@@ -76,7 +76,7 @@ def configure(env):
|
||||
mpprefix = os.environ.get("MACPORTS_PREFIX", "/opt/local")
|
||||
mpclangver = env["macports_clang"]
|
||||
env["CC"] = mpprefix + "/libexec/llvm-" + mpclangver + "/bin/clang"
|
||||
env["LD"] = mpprefix + "/libexec/llvm-" + mpclangver + "/bin/clang++"
|
||||
env["LINK"] = mpprefix + "/libexec/llvm-" + mpclangver + "/bin/clang++"
|
||||
env["CXX"] = mpprefix + "/libexec/llvm-" + mpclangver + "/bin/clang++"
|
||||
env['AR'] = mpprefix + "/libexec/llvm-" + mpclangver + "/bin/llvm-ar"
|
||||
env['RANLIB'] = mpprefix + "/libexec/llvm-" + mpclangver + "/bin/llvm-ranlib"
|
||||
@@ -110,7 +110,7 @@ def configure(env):
|
||||
if (env["CXX"] == "clang++"):
|
||||
env.Append(CPPFLAGS=['-DTYPED_METHOD_BIND'])
|
||||
env["CC"] = "clang"
|
||||
env["LD"] = "clang++"
|
||||
env["LINK"] = "clang++"
|
||||
|
||||
## Dependencies
|
||||
|
||||
|
||||
Reference in New Issue
Block a user