mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-11 08:36:16 +00:00
Statically link libraries for mingw
This commit is contained in:
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@@ -528,6 +528,9 @@ jobs:
|
||||
name: Windows 2022 Emulation Root
|
||||
path: build/release/artifacts/root
|
||||
|
||||
- name: Copy Test Sample
|
||||
run: cp build/release/artifacts/test-sample.exe build/release/artifacts/root/filesys/c/
|
||||
|
||||
- name: CMake Test
|
||||
run: cd build/release/artifacts && ./windows-emulator-test.exe
|
||||
env:
|
||||
|
||||
@@ -64,6 +64,13 @@ endif()
|
||||
##########################################
|
||||
|
||||
if(MINGW)
|
||||
add_link_options(
|
||||
-static-libstdc++
|
||||
-static-libgcc
|
||||
-static
|
||||
-lwinpthread
|
||||
)
|
||||
|
||||
momo_add_c_and_cxx_compile_options(
|
||||
-Wno-array-bounds
|
||||
)
|
||||
|
||||
@@ -9,9 +9,6 @@ momo_add_subdirectory_and_get_targets("backends" BACKEND_TARGETS)
|
||||
momo_targets_set_folder("backends" ${BACKEND_TARGETS})
|
||||
|
||||
if (NOT MOMO_BUILD_AS_LIBRARY)
|
||||
if (MINGW)
|
||||
add_link_options(-static-libstdc++ -static -lwinpthread)
|
||||
endif()
|
||||
add_subdirectory(analyzer)
|
||||
add_subdirectory(debugger)
|
||||
add_subdirectory(fuzzing-engine)
|
||||
|
||||
Reference in New Issue
Block a user