Default target ignores OS bitness

Issue #14 closed
Marc Valle created an issue

Reproduction

  1. Download 3.0.0 version of EPID SDK from EPID SDK site

  2. Build on 64 Bit platform with 32-bit version of Windows 7 by invoking scons with default args

Result

Build Targets 64 bit platform, and unit tests fail to run in 32 bit environment.

--target=x86 will allow the build to work but unit tests will still fail to run, apparently they still believe they should run in 64 bit env

Comments (5)

  1. Jason Kenny

    Hi Marc,

    So if i understand this correctly. I build a 64-bit version of the SDK on a 32-bit version of windows. I try to run the 64-bit code on a 32-bit version of windows and the 64-bit code fails to run on a 32-bit version of windows. Is this correct? I see you have

    def set_default_production_options():
        SetOptionDefault('TARGET_PLATFORM', 'x86_64')
        SetOptionDefault('CONFIG', 'release')
    

    So by default you assume a 64-bit build.

    From what I recall 32-bit windows will not run 64-bit code. Only 64-bit windows will run 32-bit and 64-bit code.

  2. Log in to comment