Browse Source

f5d12cb57aa60c70caf46e435d475982c8ffbcbb

pg 1 year ago
parent
commit
aa891ba4c0
1 changed files with 6 additions and 1 deletions
  1. 6 1
      build/conf/python.conf

+ 6 - 1
build/conf/python.conf

@@ -402,7 +402,12 @@ module PY_ANY_MODULE: DLL_UNIT {
 
     # -bundle
     when ($DARWIN == "yes") {
-        LDFLAGS+=-flat_namespace
+        when ($CLANG_VER == "16") {
+            # TODO(pg): also check 17 and beyond
+        }
+        otherwise {
+            LDFLAGS+=-flat_namespace
+        }
     }
 
     when ($MSVC == "yes" || $CYGWIN == "yes") {