See https://github.com/llvm/llvm-project/issues/59965
Use of muniversal PG ensures CMAKE_OSX_ARCHITECTURES is only one value,
so the fix can be different from the fix in the LLVM port.
old
|
new
|
|
54 | 54 | endif() |
55 | 55 | else() |
56 | 56 | check_symbol_exists(__x86_64__ "" IS_X64) |
57 | | if (IS_X64 OR CMAKE_OSX_ARCHITECTURES MATCHES "x86_64") |
| 57 | if (IS_X64) |
58 | 58 | # In a macOS Universal build (setting CMAKE_OSX_ARCHITECTURES to multiple |
59 | 59 | # values), compilation of the source files will target multiple architectures |
60 | 60 | # (each source file is internally compiled once for each architecture). |