Arthapz wrote: > > xmake dev said he can fix the problem by /clang:-o > > We [tried this, but it didn't work when generating multiple output > files](https://gitlab.kitware.com/cmake/cmake/-/issues/25731#note_1603818). > In particular, a `scan-with-pch` test still fails. Perhaps @Arthapz needs to > widen the test scenarios for xmake. > > ``` > CMake Error at R:/cmake/Tests/RunCMake/RunCMake.cmake:289 (message): > examples/scan-with-pch-build - FAILED: > > Result is [1], not [0]. > > Command was: > > command> "R:/cmake/out/build/RelWithDebInfo/bin/cmake.exe" "--build" "." > "--config" "Debug" > > Actual stdout: > > actual-stdout> [1/5] Building CXX object > CMakeFiles\simple.dir\cmake_pch.cxx.obj > actual-stdout> FAILED: CMakeFiles/simple.dir/cmake_pch.cxx.obj > actual-stdout> R:\llvm-project\build\x64-release\bin\clang-cl.exe /nologo > -TP /DWIN32 /D_WINDOWS /EHsc /Ob0 /Od /RTC1 -std:c++20 -MDd -Zi > /YcR:/cmake/out/build/RelWithDebInfo/Tests/RunCMake/CXXModules/examples/scan-with-pch-build/CMakeFiles/simple.dir/cmake_pch.hxx > > /FpR:/cmake/out/build/RelWithDebInfo/Tests/RunCMake/CXXModules/examples/scan-with-pch-build/CMakeFiles/simple.dir/./cmake_pch.cxx.pch > > /FIR:/cmake/out/build/RelWithDebInfo/Tests/RunCMake/CXXModules/examples/scan-with-pch-build/CMakeFiles/simple.dir/cmake_pch.hxx > /showIncludes -clang:-oCMakeFiles\simple.dir\cmake_pch.cxx.obj > /FdCMakeFiles\simple.dir\ -c -- > R:\cmake\out\build\RelWithDebInfo\Tests\RunCMake\CXXModules\examples\scan-with-pch-build\CMakeFiles\simple.dir\cmake_pch.cxx > actual-stdout> clang-cl: error: cannot specify -o when generating multiple > output files > actual-stdout> ninja: build stopped: subcommand failed. > ``` well i'm still experimenting, i'm not using /clang: on scanning step (and i don't remove -Fo flag), only at build step pch with module fail but for an other reason <img width="1918" alt="{F97DB240-83B4-4274-8136-2BE661E2994D}" src="https://github.com/user-attachments/assets/70141ac1-cb01-4b64-8add-381463b5ec86" />
https://github.com/llvm/llvm-project/pull/121046 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits