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):
23792379 if sys .platform == "darwin" :
23802380 # Use the already-loaded python symbols.
23812381 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" )
23822390
23832391 if sys .platform == "win32" :
23842392 # Workaround for https://github.com/Theano/Theano/issues/4926.
You can’t perform that action at this time.
0 commit comments