Skip to content

Commit 6d051b0

Browse files
committed
Add new extra_compile_args
1 parent 2f01082 commit 6d051b0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@
216216
include_dirs += [os.path.join(PYTHON_HOME, 'include')]
217217

218218
extra_compile_args += ["-Wno-write-strings"]
219+
extra_compile_args += ["-fpermissive"]
219220

220221
if BOOST_STATIC_LINK:
221222
extra_link_args += [os.path.join(boost_lib_dir, "lib%s.a") % lib for lib in boost_libs]
@@ -292,7 +293,7 @@
292293
else:
293294
extra_compile_args += ['-g', '-O3']
294295

295-
extra_compile_args += ["-Wdeprecated-writable-strings", "-stdlib=libc++"]
296+
extra_compile_args += ["-Wdeprecated-writable-strings", "-Wno-tautological-undefined-compare", "-Wno-deprecated-declarations", "-stdlib=libc++"]
296297

297298
else:
298299
print("ERROR: unsupported OS (%s) and platform (%s)" % (os.name, sys.platform))
@@ -323,6 +324,7 @@
323324
extra_objects += ["%slib%s.a" % (icu_path, name) for name in ['icui18n', 'icuuc', 'icudata']]
324325

325326

327+
326328
def exec_cmd(cmdline_or_args, msg, shell=True, cwd=V8_HOME, env=None, output=False):
327329
print("-" * 20)
328330
print("INFO: %s ..." % msg)

0 commit comments

Comments
 (0)