@@ -99,12 +99,24 @@ def configure(conf):
99
99
debug_env .set_variant ('debug' )
100
100
debug_env .append_value ('CCFLAGS' , ['-DDEBUG' , '-g' , '-O0' , '-Wall' , '-Wextra' ])
101
101
debug_env .append_value ('CXXFLAGS' , ['-DDEBUG' , '-g' , '-O0' , '-Wall' , '-Wextra' ])
102
+
103
+ # HACK FIXME - use 32bit on Mac
104
+ if platform .system () == "Darwin" :
105
+ debug_env .append_value ('CCFLAGS' , '-m32' )
106
+ debug_env .append_value ('CXXFLAGS' , '-m32' )
107
+
102
108
conf .write_config_header ("config.h" )
103
109
104
110
# Configure default variant
105
111
conf .setenv ('default' )
106
112
conf .env .append_value ('CCFLAGS' , ['-DNDEBUG' , '-O3' ])
107
113
conf .env .append_value ('CXXFLAGS' , ['-DNDEBUG' , '-O3' ])
114
+
115
+ # HACK FIXME - use 32bit on Mac
116
+ if platform .system () == "Darwin" :
117
+ conf .env .append_value ('CCFLAGS' , '-m32' )
118
+ conf .env .append_value ('CXXFLAGS' , '-m32' )
119
+
108
120
conf .write_config_header ("config.h" )
109
121
110
122
def build_udns (bld ):
@@ -166,6 +178,9 @@ def build_v8(bld):
166
178
if GuessArchitecture () == "x64" :
167
179
arch = "arch=x64"
168
180
181
+ # HACK FIXME - use 32bit on Mac
182
+ if platform .system () == "Darwin" : arch = "arch=ia32" ;
183
+
169
184
v8 = bld .new_task_gen (
170
185
target = join ("deps/v8" , bld .env ["staticlib_PATTERN" ] % "v8" ),
171
186
rule = v8rule % (v8dir_tgt , scons , "release" , arch ),
@@ -177,6 +192,10 @@ def build_v8(bld):
177
192
bld .env_of_name ('default' )["LIBPATH_V8" ] = v8dir_tgt
178
193
bld .env_of_name ('default' )["LINKFLAGS_V8" ] = ["-pthread" ]
179
194
195
+ # HACK FIXME - use 32bit on Mac
196
+ if platform .system () == "Darwin" :
197
+ bld .env_of_name ('default' )["LINKFLAGS_V8" ] = ["-pthread" , "-m32" ]
198
+
180
199
### v8 debug
181
200
if bld .env ["USE_DEBUG" ]:
182
201
deps_tgt = join (bld .srcnode .abspath (bld .env_of_name ("debug" )),"deps" )
@@ -186,6 +205,11 @@ def build_v8(bld):
186
205
bld .env_of_name ('debug' )["STATICLIB_V8" ] = "v8_g"
187
206
bld .env_of_name ('debug' )["LIBPATH_V8" ] = v8dir_tgt
188
207
bld .env_of_name ('debug' )["LINKFLAGS_V8" ] = ["-pthread" ]
208
+
209
+ # HACK FIXME - use 32bit on Mac
210
+ if platform .system () == "Darwin" :
211
+ bld .env_of_name ('debug' )["LINKFLAGS_V8" ] = ["-pthread" , "-m32" ]
212
+
189
213
v8_debug .rule = v8rule % (v8dir_tgt , scons , "debug" , arch )
190
214
v8_debug .target = join ("deps/v8" , bld .env ["staticlib_PATTERN" ] % "v8_g" )
191
215
0 commit comments