summaryrefslogtreecommitdiff
path: root/scons/generic.py
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-03-25 19:24:16 +0000
committerJosé Fonseca <jfonseca@vmware.com>2009-03-25 19:24:49 +0000
commit26e27ba30884be927cf1bc21d39f32d6096a6678 (patch)
tree9ff5de433326eec1f012e7fc6a4e67238d0046f1 /scons/generic.py
parent33fa6a27557171e8368d96ebf8e61aad283538b1 (diff)
scons: Support building with the Windows SDK.
x86_64 is also supported.
Diffstat (limited to 'scons/generic.py')
-rw-r--r--scons/generic.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/scons/generic.py b/scons/generic.py
index 01a374e363..764b626e58 100644
--- a/scons/generic.py
+++ b/scons/generic.py
@@ -303,14 +303,17 @@ def generate(env):
# Load tool chain
env.Tool(env['toolchain'])
+ env['gcc'] = 'gcc' in os.path.basename(env['CC']).split('-')
+ env['msvc'] = env['CC'] == 'cl'
+
# shortcuts
debug = env['debug']
machine = env['machine']
platform = env['platform']
x86 = env['machine'] == 'x86'
ppc = env['machine'] == 'ppc'
- gcc = env['platform'] in ('linux', 'freebsd', 'darwin') or env['toolchain'] == 'crossmingw'
- msvc = env['platform'] in ('windows', 'winddk', 'wince') and env['toolchain'] != 'crossmingw'
+ gcc = env['gcc']
+ msvc = env['msvc']
# C preprocessor options
cppdefines = []