diff options
author | RJ Ryan <rryan@mixxx.org> | 2014-09-16 14:03:37 -0400 |
---|---|---|
committer | RJ Ryan <rryan@mixxx.org> | 2014-09-16 14:03:37 -0400 |
commit | 7c85c7875bbfe681cdbce444c1cffc5fa07d6c4e (patch) | |
tree | 3b9058d50761fd359e5a7bfa99d6e2e50f9e75d1 /src/SConscript | |
parent | 1b2ed105e379419b8842bea604d6df30b7a985ae (diff) |
Windows XP compatibility: Use /subsystem:WINDOWS,5.[01|02].
See: http://blogs.msdn.com/b/vcblog/archive/2012/10/08/windows-xp-targeting-with-c-in-visual-studio-2012.aspx?PageIndex=2
Diffstat (limited to 'src/SConscript')
-rw-r--r-- | src/SConscript | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/SConscript b/src/SConscript index 9edd5939b8..8548f8ba5e 100644 --- a/src/SConscript +++ b/src/SConscript @@ -95,8 +95,12 @@ def build_tests(): if build.platform_is_windows: # We want a terminal for tests. - env['LINKFLAGS'].remove('/subsystem:windows') - env['LINKFLAGS'].append('/subsystem:console') + if build.machine_is_64bit: + env['LINKFLAGS'].remove('/subsystem:windows,5.02') + env['LINKFLAGS'].append('/subsystem:console,5.02') + else: + env['LINKFLAGS'].remove('/subsystem:windows,5.01') + env['LINKFLAGS'].append('/subsystem:console,5.01') test_bin = env.Program( 'mixxx-test', [test_sources, env.RES('#src/mixxx.rc')], |