瀏覽代碼

AIX: Fix shared library linking with CMAKE_<LANG>_COMPILER_TARGET

With Clang, `CMAKE_C_COMPILER_TARGET` adds a `--target=` flag as part of
the `<CMAKE_C_COMPILER>` placeholder, causing the flag to be passed to
our `ExportImportList` script.  Tolerate it.

Fixes: #27167
David Tenty 1 月之前
父節點
當前提交
c482a8833a
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Modules/Platform/AIX/ExportImportList

+ 1 - 0
Modules/Platform/AIX/ExportImportList

@@ -23,6 +23,7 @@ while test "$#" != 0; do
     -n) no_objects='1' ;;
     -n) no_objects='1' ;;
     -c) shift; compiler="$1" ;;
     -c) shift; compiler="$1" ;;
     --) shift; break ;;
     --) shift; break ;;
+    --target=*) ;;
     -*) die "$usage" ;;
     -*) die "$usage" ;;
     *)  break ;;
     *)  break ;;
     esac
     esac