File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -2379,6 +2379,14 @@ def join_options(init_part):
2379
2379
if sys .platform == "darwin" :
2380
2380
# Use the already-loaded python symbols.
2381
2381
cxxflags .extend (["-undefined" , "dynamic_lookup" ])
2382
+ # XCode15 introduced ld_prime linker. At the time of writing, this linker
2383
+ # leads to multiple issues, so we supply a flag to use the older dynamic
2384
+ # linker: ld64
2385
+ if int (platform .mac_ver ()[0 ].split ("." )[0 ]) >= 15 :
2386
+ # This might be incorrect. We know that ld_prime was introduced in
2387
+ # XCode15, but we don't know if the platform version is aligned with
2388
+ # xcode's version.
2389
+ cxxflags .append ("-ld64" )
2382
2390
2383
2391
if sys .platform == "win32" :
2384
2392
# Workaround for https://github.com/Theano/Theano/issues/4926.
You can’t perform that action at this time.
0 commit comments