-
- Downloads
OBJCXX: Fix regression for compiling cpp files as objcxx
In commit 8d61294c (PCH: Mark CMake PCH source files as -x <lang>-header, 2020-09-04, v3.18.3~14^2) we removed the explicit `-x objective-c++` flag. This broke cases with custom source extensions. Restore the explicit `-x objective-c[++]` flag and put it before the `<FLAGS>` placeholder. The latter will contain the proper `-x objective-c[++]-header` value and will override the `-x objective-c[++]` value set before. Fixes: #21234
Showing
- Modules/CMakeOBJCInformation.cmake 1 addition, 1 deletionModules/CMakeOBJCInformation.cmake
- Modules/CMakeOBJCXXInformation.cmake 1 addition, 1 deletionModules/CMakeOBJCXXInformation.cmake
- Tests/ObjCXX/CMakeLists.txt 1 addition, 0 deletionsTests/ObjCXX/CMakeLists.txt
- Tests/ObjCXX/cxx-as-objcxx/CMakeLists.txt 5 additions, 0 deletionsTests/ObjCXX/cxx-as-objcxx/CMakeLists.txt
- Tests/ObjCXX/cxx-as-objcxx/main.cpp 6 additions, 0 deletionsTests/ObjCXX/cxx-as-objcxx/main.cpp
Tests/ObjCXX/cxx-as-objcxx/CMakeLists.txt
0 → 100644
Tests/ObjCXX/cxx-as-objcxx/main.cpp
0 → 100644
Please register or sign in to comment