Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-14649

refine v8 scons compilation/linker flag detection mechanism

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Build, JavaScript
    • Labels:
    • Fully Compatible
    • ALL
    • Hide

      "scons mongod.exe" on 64-bit Windows results in an error when compiling v8 source files:
      #error : You cannot use 32-bit time_t (_USE_32BIT_TIME_T) with _WIN64

      Show
      "scons mongod.exe" on 64-bit Windows results in an error when compiling v8 source files: #error : You cannot use 32-bit time_t (_USE_32BIT_TIME_T) with _WIN64
    • BUILD 1

      Currently, both the old and the new v8 Sconscripts use PROCESSOR_ARCHITECTURE to detect the platform and generate compilation/linker flags. This breaks on Windows; we should be able to compile on 64-bit Windows without explicitly specifying "--64" on the command line, but v8 compilation still breaks without --64.
      We should be using perhaps TARGET_ARCH, which is set in the main SConstruct based on scons's detection of the platform plus some override parameters provided by the user.

            Assignee:
            jonathan.reams@mongodb.com Jonathan Reams
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: