Skip to content

Force SCons to use 32-bit MSVC compiler on 64-bit Windows #3187

@nneesshh

Description

@nneesshh

See https://stackoverflow.com/questions/24810474/force-scons-to-use-32-bit-msvc-compiler-on-64-bit-windows

I encounted the same bug: I want scons to use x86 version "cl.exe", but it always use x64 version "cl.exe".
When I modified the "C:\Python27\scons-3.0.1\SCons\Environment.py" line 950

form "self._dict['TARGET_ARCH'] = self._dict.get('TARGET_ARCH',None)" to "self._dict['TARGET_ARCH'] = self._dict.get('TARGET_ARCH','x86')"

It use x86 version "cl.exe" now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions