mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 13:00:15 +02:00
CMake: Don't link CMake's set of extra system libraries on Windows
These are already linked in by default with clang, sp having these set here only served to prevent the -nostdlib compiler option from having any effect, as CMake will always explicitly include the libs in the compiler cmdline.
This commit is contained in:
1 parent
8f372821f8
commit
b35a514ea6
1 file changed
+3
-1
@@ -10,6 +10,8 @@ set(CMAKE_DLLTOOL ${MINGW_TRIPLE}-dlltool)
|
||||
# (https://github.com/llvm/llvm-project/issues/47432)
|
||||
set(CMAKE_SHARED_LINKER_FLAGS_INIT "-static -static-libgcc -static-libstdc++ -Wl,--file-alignment=4096,/mllvm:-align-loops=1")
|
||||
set(CMAKE_EXE_LINKER_FLAGS_INIT "-static -static-libgcc -static-libstdc++ -Wl,--file-alignment=4096,/mllvm:-align-loops=1")
|
||||
|
||||
set(CMAKE_C_STANDARD_LIBRARIES "" CACHE STRING "" FORCE)
|
||||
set(CMAKE_CXX_STANDARD_LIBRARIES "" CACHE STRING "" FORCE)
|
||||
set(CMAKE_STANDARD_LIBRARIES "" CACHE STRING "" FORCE)
|
||||
set(CMAKE_SYSTEM_NAME Windows)
|
||||
set(CMAKE_SYSTEM_PROCESSOR ${MINGW_TRIPLE})
|
||||
Reference in new issue
Block a user