Commit 5ec5dcbd authored by iposva@chromium.org's avatar iposva@chromium.org

- Simplify the architecture setup. In particular the 'wordsize' parameter

  cannot be trusted. The reported host architecture has no relation to the
  default architecture being used for gcc.

Review URL: http://codereview.chromium.org/149774

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2489 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 752a8fba
...@@ -149,31 +149,22 @@ LIBRARY_FLAGS = { ...@@ -149,31 +149,22 @@ LIBRARY_FLAGS = {
'-Wstrict-aliasing=2'], '-Wstrict-aliasing=2'],
'CPPPATH': ANDROID_INCLUDES, 'CPPPATH': ANDROID_INCLUDES,
}, },
'wordsize:32': {
'arch:x64': {
'CCFLAGS': ['-m64'],
'LINKFLAGS': ['-m64']
}
},
'wordsize:64': {
'arch:ia32': {
'CCFLAGS': ['-m32'],
'LINKFLAGS': ['-m32']
},
'arch:arm': {
'CCFLAGS': ['-m32'],
'LINKFLAGS': ['-m32']
}
},
'arch:ia32': { 'arch:ia32': {
'CPPDEFINES': ['V8_TARGET_ARCH_IA32'] 'CPPDEFINES': ['V8_TARGET_ARCH_IA32'],
'CCFLAGS': ['-m32'],
'LINKFLAGS': ['-m32']
}, },
'arch:arm': { 'arch:arm': {
'CPPDEFINES': ['V8_TARGET_ARCH_ARM'] 'CPPDEFINES': ['V8_TARGET_ARCH_ARM']
}, },
'simulator:arm': {
'CCFLAGS': ['-m32'],
'LINKFLAGS': ['-m32']
},
'arch:x64': { 'arch:x64': {
'CCFLAGS': ['-fno-strict-aliasing'], 'CPPDEFINES': ['V8_TARGET_ARCH_X64'],
'CPPDEFINES': ['V8_TARGET_ARCH_X64'] 'CCFLAGS': ['-fno-strict-aliasing', '-m64'],
'LINKFLAGS': ['-m64'],
}, },
'prof:oprofile': { 'prof:oprofile': {
'CPPDEFINES': ['ENABLE_OPROFILE_AGENT'] 'CPPDEFINES': ['ENABLE_OPROFILE_AGENT']
...@@ -341,22 +332,6 @@ CCTEST_EXTRA_FLAGS = { ...@@ -341,22 +332,6 @@ CCTEST_EXTRA_FLAGS = {
'CPPDEFINES': ['SK_RELEASE', 'NDEBUG'] 'CPPDEFINES': ['SK_RELEASE', 'NDEBUG']
} }
}, },
'wordsize:32': {
'arch:x64': {
'CCFLAGS': ['-m64'],
'LINKFLAGS': ['-m64']
}
},
'wordsize:64': {
'arch:ia32': {
'CCFLAGS': ['-m32'],
'LINKFLAGS': ['-m32']
},
'arch:arm': {
'CCFLAGS': ['-m32'],
'LINKFLAGS': ['-m32']
}
}
}, },
'msvc': { 'msvc': {
'all': { 'all': {
...@@ -408,21 +383,17 @@ SAMPLE_FLAGS = { ...@@ -408,21 +383,17 @@ SAMPLE_FLAGS = {
'CPPDEFINES': ['SK_RELEASE', 'NDEBUG'] 'CPPDEFINES': ['SK_RELEASE', 'NDEBUG']
} }
}, },
'wordsize:32': { 'arch:ia32': {
'arch:x64': { 'CCFLAGS': ['-m32'],
'CCFLAGS': ['-m64'], 'LINKFLAGS': ['-m32']
'LINKFLAGS': ['-m64']
}
}, },
'wordsize:64': { 'arch:x64': {
'arch:ia32': { 'CCFLAGS': ['-m64'],
'CCFLAGS': ['-m32'], 'LINKFLAGS': ['-m64']
'LINKFLAGS': ['-m32'] },
}, 'simulator:arm': {
'arch:arm': { 'CCFLAGS': ['-m32'],
'CCFLAGS': ['-m32'], 'LINKFLAGS': ['-m32']
'LINKFLAGS': ['-m32']
}
}, },
'mode:release': { 'mode:release': {
'CCFLAGS': ['-O2'] 'CCFLAGS': ['-O2']
...@@ -533,7 +504,6 @@ def GuessToolchain(os): ...@@ -533,7 +504,6 @@ def GuessToolchain(os):
OS_GUESS = utils.GuessOS() OS_GUESS = utils.GuessOS()
TOOLCHAIN_GUESS = GuessToolchain(OS_GUESS) TOOLCHAIN_GUESS = GuessToolchain(OS_GUESS)
ARCH_GUESS = utils.GuessArchitecture() ARCH_GUESS = utils.GuessArchitecture()
WORDSIZE_GUESS = utils.GuessWordsize()
SIMPLE_OPTIONS = { SIMPLE_OPTIONS = {
...@@ -587,11 +557,6 @@ SIMPLE_OPTIONS = { ...@@ -587,11 +557,6 @@ SIMPLE_OPTIONS = {
'default': 'on', 'default': 'on',
'help': 'use Microsoft Visual C++ link-time code generation' 'help': 'use Microsoft Visual C++ link-time code generation'
}, },
'wordsize': {
'values': ['64', '32'],
'default': WORDSIZE_GUESS,
'help': 'the word size'
},
'simulator': { 'simulator': {
'values': ['arm', 'none'], 'values': ['arm', 'none'],
'default': 'none', 'default': 'none',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment