Skip to content

Commit 6e95970

Browse files
committed
Add '-stdlib=libc++' to default CFLAGS.
1 parent 8b015a3 commit 6e95970

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graalpython/lib-python/3/distutils/sysconfig_graalpython.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ def _init_posix():
7474

7575
g = {}
7676
g['CC'] = sys.__graal_get_toolchain_path('CC')
77-
g['CXX'] = toolchain_cxx if have_cxx else g['CC'] + ' --driver-mode=g++ -stdlib=libc++'
77+
g['CXX'] = toolchain_cxx if have_cxx else g['CC'] + ' --driver-mode=g++'
7878
g['OPT'] = "-DNDEBUG -O1"
7979
g['CONFINCLUDEPY'] = get_python_inc()
8080
g['CPPFLAGS'] = '-I. -I' + get_python_inc()
81-
g['CFLAGS'] = "-DNDEBUG -O1"
81+
g['CFLAGS'] = "-Wunused-command-line-argument -stdlib=libc++ -DNDEBUG -O1"
8282
g['CCSHARED'] = "-fPIC"
8383
g['LDSHARED_LINUX'] = "%s -shared -fPIC" % sys.__graal_get_toolchain_path('CC')
8484
if darwin_native:

0 commit comments

Comments
 (0)