diff --git a/AUTHORS b/AUTHORS index dfefad129f..6e46b3d621 100644 --- a/AUTHORS +++ b/AUTHORS @@ -23,6 +23,7 @@ Daniel James Dineel D Sule Erich Ocean Fedor Indutny +Filipe David Manana Ioseb Dzmanashvili Jan de Mooij Jay Freeman diff --git a/Makefile b/Makefile index 72d08c4b95..da1d6883fe 100644 --- a/Makefile +++ b/Makefile @@ -266,4 +266,4 @@ $(ENVFILE).new: # Dependencies. dependencies: svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \ - --revision 1026 + --revision 1282 diff --git a/build/common.gypi b/build/common.gypi index 7647a7969d..3016d0c557 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -238,6 +238,19 @@ ], }], ], + }, { # Section for OS=="mac". + 'conditions': [ + ['target_arch=="ia32"', { + 'xcode_settings': { + 'ARCHS': ['i386'], + } + }], + ['target_arch=="x64"', { + 'xcode_settings': { + 'ARCHS': ['x86_64'], + } + }], + ], }], ['v8_use_liveobjectlist=="true"', { 'defines': [ diff --git a/build/gyp_v8 b/build/gyp_v8 index 4293e7637e..0fe3403694 100755 --- a/build/gyp_v8 +++ b/build/gyp_v8 @@ -1,6 +1,6 @@ #!/usr/bin/python # -# Copyright 2010 the V8 project authors. All rights reserved. +# Copyright 2012 the V8 project authors. All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: @@ -156,7 +156,12 @@ if __name__ == '__main__': # Generate for the architectures supported on the given platform. gyp_args = list(args) - gyp_args.append('-Dtarget_arch=ia32') + target_arch = None + for p in gyp_args: + if p.find('-Dtarget_arch=') == 0: + target_arch = p + if target_arch is None: + gyp_args.append('-Dtarget_arch=ia32') if utils.GuessOS() == 'linux': gyp_args.append('-S-ia32') run_gyp(gyp_args) diff --git a/tools/gyp/v8.gyp b/tools/gyp/v8.gyp index bb26f8ab21..46f85fe1ff 100644 --- a/tools/gyp/v8.gyp +++ b/tools/gyp/v8.gyp @@ -59,6 +59,11 @@ '../../src/v8dll-main.cc', ], 'conditions': [ + ['OS=="mac"', { + 'xcode_settings': { + 'OTHER_LDFLAGS': ['-dynamiclib', '-all_load'] + }, + }], ['OS=="win"', { 'defines': [ 'BUILDING_V8_SHARED',