]> git.ipfire.org Git - thirdparty/zstd.git/commit
Fix Intel Xcode builds with assembly 3665/head
authorGregor Jasny <gjasny@googlemail.com>
Fri, 2 Jun 2023 10:34:56 +0000 (12:34 +0200)
committerGregor Jasny <gjasny@googlemail.com>
Fri, 2 Jun 2023 10:43:59 +0000 (12:43 +0200)
commit7e09f07b325b6e2a95e11776f23ff97716b7b924
treeac24c340d46f25896d3af8f3a248b4aa0898e2dc
parent5059618295bc67f4f70eb6f12e6cf57b8d3de141
Fix Intel Xcode builds with assembly

When forcing the source file language to `C`, Xcode enforces
the file to be compiled as `C` by appending `-x c` to the
compiler command line.

For now try to limit the damage and only enforce the language
if the ASM and C compilers differ.

Reproducer (CMake `3.26.4`, Xcode `14.3`):
```
cmake -S build/cmake -B _b -GXcode -DCMAKE_OSX_ARCHITECTURES=x86_64
cmake --build _b
```

Fix: #3622
build/cmake/lib/CMakeLists.txt