Compare commits
2 Commits
13b4ab2a57
...
6898ee9a40
Author | SHA1 | Date |
---|---|---|
Eoin O'Neill | 6898ee9a40 | |
Eoin O'Neill | 368f671912 |
|
@ -2,6 +2,7 @@ import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
from SCons.Script import ARGUMENTS
|
from SCons.Script import ARGUMENTS
|
||||||
|
from SCons.Tool import Tool
|
||||||
from SCons.Variables import *
|
from SCons.Variables import *
|
||||||
from SCons.Variables.BoolVariable import _text2bool
|
from SCons.Variables.BoolVariable import _text2bool
|
||||||
|
|
||||||
|
@ -128,7 +129,7 @@ def generate(env):
|
||||||
if using_clang(env) and is_clang_type(env, "Apple"):
|
if using_clang(env) and is_clang_type(env, "Apple"):
|
||||||
# Apple Clang, its linker doesn't like -s.
|
# Apple Clang, its linker doesn't like -s.
|
||||||
env.Append(LINKFLAGS=["-Wl,-S", "-Wl,-x", "-Wl,-dead_strip"])
|
env.Append(LINKFLAGS=["-Wl,-S", "-Wl,-x", "-Wl,-dead_strip"])
|
||||||
elif is_clang_type(env, "clang"):
|
elif using_clang(env) and is_clang_type(env, "clang"):
|
||||||
env.Append(LINKFLAGS=["-s"])
|
env.Append(LINKFLAGS=["-s"])
|
||||||
|
|
||||||
if env["optimize"] == "speed":
|
if env["optimize"] == "speed":
|
||||||
|
|
Loading…
Reference in New Issue