Compare commits
2 Commits
6898ee9a40
...
13b4ab2a57
Author | SHA1 | Date |
---|---|---|
Eoin O'Neill | 13b4ab2a57 | |
Eoin O'Neill | e878b705b9 |
|
@ -2,7 +2,6 @@ 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
|
||||||
|
|
||||||
|
@ -129,7 +128,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 using_clang(env) and is_clang_type(env, "clang"):
|
elif 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