Commits

Anonymous committed 6556ee4

fix the compile error

Comments (0)

Files changed (2)

     library_dirs += [p for p in LIB.split(os.path.pathsep) if p]
 
 v8_lib = 'v8_g' if DEBUG else 'v8' # contribute by gaussgss
+boost_lib = 'boost_python-mt' if BOOST_PYTHON_MT else 'boost_python'
 
 classifiers = [
     'Development Status :: 4 - Beta',
         library_dirs += [os.path.join(PYTHON_HOME, 'lib/python%d.%d' % (major, minor))]
         include_dirs += [os.path.join(PYTHON_HOME, 'include')]
 
-    libraries += ["boost_python-mt" if BOOST_PYTHON_MT else "boost_python", v8_lib, "rt"]
+    libraries += [boost_lib, v8_lib, "rt"]
     extra_compile_args += ["-Wno-write-strings"]
 
     if is_freebsd:
         BOOST_HOME,
     ]
     library_dirs += [os.path.join('/lib')]
-    libraries += ["boost_python-mt" if BOOST_PYTHON_MT else "boost_python", v8_lib, "c"]
+    libraries += [boost_lib, v8_lib, "c"]
 
 elif is_osx: # contribute by progrium and alec
     # force x64 because Snow Leopard's native Python is 64-bit
 
         x64 = [k for k, v in macros if k == 'V8_TARGET_ARCH_X64']
         
-        fixed_build_script = build_script.replace('-fno-rtti', '')\
-                                         .replace('-fno-exceptions', '')\
+        fixed_build_script = build_script.replace('-fno-rtti', '') \
+                                         .replace('-fno-exceptions', '') \
+                                         .replace('-Werror', '') \
                                          .replace('/WX', '').replace('/GR-', '')
 
         if x64 and os.name != 'nt':
 
   py::enum_<v8i::Token::Value>("AstOperation")
   #define T(name, string, precedence) .value(#name, v8i::Token::name)
-    TOKEN_LIST(T, T, IGNORE_TOKEN)
+    TOKEN_LIST(T, IGNORE_TOKEN)
   #undef T
     ;