Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Issue 100160: Fix .gyp file and avoid adding -m32 on 32 bit systems. (Closed)

Created:
11 years, 7 months ago by Lasse Reichstein
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Fix .gyp file and avoid adding -m32 on 32 bit systems. Fix SConstruct to only add -m32 if the compiler needs it.

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -29 lines) Patch
M SConstruct View 6 chunks +44 lines, -25 lines 6 comments Download
M tools/gyp/v8.gyp View 8 chunks +18 lines, -3 lines 0 comments Download
M tools/visual_studio/ia32.vsprops View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Lasse Reichstein
TBR. It turns out that "wordsize" should not be used as the desired word size, ...
11 years, 7 months ago (2009-04-29 15:20:09 UTC) #1
iposva
http://codereview.chromium.org/100160/diff/1/2 File SConstruct (right): http://codereview.chromium.org/100160/diff/1/2#newcode158 Line 158: 'CPPDEFINES': ['V8_ARCH_X64', 'LP64'] Shouldn't you rely on __LP64__ ...
11 years, 7 months ago (2009-04-29 21:30:30 UTC) #2
Mads Ager (chromium)
LGTM. Ivan's comments make sense to me.
11 years, 7 months ago (2009-04-30 07:02:00 UTC) #3
Lasse Reichstein
11 years, 7 months ago (2009-05-01 06:36:29 UTC) #4
http://codereview.chromium.org/100160/diff/1/2
File SConstruct (right):

http://codereview.chromium.org/100160/diff/1/2#newcode158
Line 158: 'CPPDEFINES':   ['V8_ARCH_X64', 'LP64']
Personally, I prefer setting everything myself to depending on the compiler.
It is exactly because of Windows using LLPC64 that we are going to need to
differentiate, and I much prefer being in control to relying on some property
that might differ between compilers.

If not all GCC compilers use LP64 as 64-bit data model, then these declarations
should be fixed. The ones I am aware of should do so. The setting for the MSVC
compiler should be in another sub-section (and hasn't been added yet).

I.e., it was deliberate, but I'm open to arguments for other approaches.

http://codereview.chromium.org/100160/diff/1/2#newcode213
Line 213: 'CPPDEFINES':   ['ARM']
Done.

http://codereview.chromium.org/100160/diff/1/2#newcode612
Line 612: Abort("X64 compilation only allowed on Linux OS.")
Yes, there is probably no reason for this restriction anyway. We don't guarantee
that it compiles anyway, yet. I didn't remove it before committing, but it
should be removed when there's an occasion.

Powered by Google App Engine
This is Rietveld 408576698