Fix native ARM build

BUG=v8:1744, v8:539

Review URL: https://chromiumcodereview.appspot.com/10008082

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11300 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 69952d78
...@@ -261,7 +261,8 @@ $(ENVFILE): $(ENVFILE).new ...@@ -261,7 +261,8 @@ $(ENVFILE): $(ENVFILE).new
# Stores current GYPFLAGS in a file. # Stores current GYPFLAGS in a file.
$(ENVFILE).new: $(ENVFILE).new:
@mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new; @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new; \
echo "CXX=$(CXX)" >> $(ENVFILE).new
# Dependencies. # Dependencies.
dependencies: dependencies:
......
...@@ -280,9 +280,16 @@ ...@@ -280,9 +280,16 @@
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
or OS=="netbsd"', { or OS=="netbsd"', {
'conditions': [ 'conditions': [
[ 'target_arch=="ia32"', { [ 'v8_target_arch!="x64"', {
'cflags': [ '-m32' ], # Pass -m32 to the compiler iff it understands the flag.
'ldflags': [ '-m32' ], 'variables': {
'm32flag': '<!(' +
'(echo | $(echo ${CXX:-$(which g++)}) -m32 -E - ' +
' > /dev/null 2>&1) ' +
'&& echo -n "-m32" || true)',
},
'cflags': [ '<(m32flag)' ],
'ldflags': [ '<(m32flag)' ],
}], }],
[ 'v8_no_strict_aliasing==1', { [ 'v8_no_strict_aliasing==1', {
'cflags': [ '-fno-strict-aliasing' ], 'cflags': [ '-fno-strict-aliasing' ],
......
...@@ -1321,7 +1321,6 @@ class MacroAssembler: public Assembler { ...@@ -1321,7 +1321,6 @@ class MacroAssembler: public Assembler {
}; };
#ifdef ENABLE_DEBUGGER_SUPPORT
// The code patcher is used to patch (typically) small parts of code e.g. for // The code patcher is used to patch (typically) small parts of code e.g. for
// debugging and other types of instrumentation. When using the code patcher // debugging and other types of instrumentation. When using the code patcher
// the exact number of bytes specified must be emitted. It is not legal to emit // the exact number of bytes specified must be emitted. It is not legal to emit
...@@ -1351,7 +1350,6 @@ class CodePatcher { ...@@ -1351,7 +1350,6 @@ class CodePatcher {
int size_; // Number of bytes of the expected patch size. int size_; // Number of bytes of the expected patch size.
MacroAssembler masm_; // Macro assembler used to generate the code. MacroAssembler masm_; // Macro assembler used to generate the code.
}; };
#endif // ENABLE_DEBUGGER_SUPPORT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
......
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