[SERVER-14649] refine v8 scons compilation/linker flag detection mechanism Created: 22/Jul/14  Updated: 11/Mar/15  Resolved: 09/Jan/15

Status: Closed
Project: Core Server
Component/s: Build, JavaScript
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Eric Milkie Assignee: Jonathan Reams
Resolution: Won't Fix Votes: 0
Labels: community-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

"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

Sprint: BUILD 1
Participants:

 Description   

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.



 Comments   
Comment by Jonathan Reams [ 09/Jan/15 ]

This will be resolved by SERVER-16791

Generated at Thu Feb 08 03:35:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.