You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
draco 1.5.7 fails to link on macOS when using an llvm.org release of clang (as opposed to an Apple release of clang from Xcode or its command line tools). The error is:
Apple clang identifies itself with the CMake compiler ID AppleClang (assuming CMP0025 is set to NEW which in my case it is) and llvm.org clang identifies itself as just Clang. This code, therefore, is checking if the compiler is llvm.org clang (or GCC) and if so it is adding the linker flags --start-group and --end-group which the macOS linker does not understand. You are presuming that using a non-Apple build of clang (or using GCC) means compiling on a non-Apple operating system, which is not a valid assumption.
The text was updated successfully, but these errors were encountered:
draco 1.5.7 fails to link on macOS when using an llvm.org release of clang (as opposed to an Apple release of clang from Xcode or its command line tools). The error is:
The cause is this code:
draco/cmake/draco_targets.cmake
Lines 165 to 179 in 7d58126
Apple clang identifies itself with the CMake compiler ID
AppleClang
(assuming CMP0025 is set toNEW
which in my case it is) and llvm.org clang identifies itself as justClang
. This code, therefore, is checking if the compiler is llvm.org clang (or GCC) and if so it is adding the linker flags--start-group
and--end-group
which the macOS linker does not understand. You are presuming that using a non-Apple build of clang (or using GCC) means compiling on a non-Apple operating system, which is not a valid assumption.The text was updated successfully, but these errors were encountered: