File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
graalpython/lib-python/3/distutils Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -69,13 +69,15 @@ def _init_posix():
69
69
so_ext = ".so" if not darwin_native else ".dylib"
70
70
assert _imp .extension_suffixes ()[0 ] == "." + so_abi + so_ext , "mismatch between extension suffix to _imp.extension_suffixes"
71
71
72
+ toolchain_cxx = sys .__graal_get_toolchain_path ('CXX' )
73
+ have_cxx = toolchain_cxx is not None
72
74
73
75
g = {}
74
76
g ['CC' ] = sys .__graal_get_toolchain_path ('CC' )
75
- g ['CXX' ] = sys . __graal_get_toolchain_path ( 'CXX' )
77
+ g ['CXX' ] = toolchain_cxx if have_cxx else g [ 'CC' ] + ' --driver-mode=g++ -stdlib=libc++'
76
78
g ['OPT' ] = "-DNDEBUG -O1"
77
79
g ['CONFINCLUDEPY' ] = get_python_inc ()
78
- g ['CPPFLAGS' ] = '-I. -I%s' % get_python_inc ()
80
+ g ['CPPFLAGS' ] = '-I. -I' + get_python_inc ()
79
81
g ['CFLAGS' ] = "-DNDEBUG -O1"
80
82
g ['CCSHARED' ] = "-fPIC"
81
83
g ['LDSHARED_LINUX' ] = "%s -shared -fPIC" % sys .__graal_get_toolchain_path ('CC' )
You can’t perform that action at this time.
0 commit comments