Compare commits

...

3 Commits

Author SHA1 Message Date
William Bell
6a7ce72eb7 fix cmake 2025-08-15 21:23:08 +01:00
William Bell
f84e5429a5 fix release.yml 2025-08-15 21:16:48 +01:00
William Bell
f4c7294267 fix release.yml 2025-08-15 21:14:17 +01:00
2 changed files with 14 additions and 16 deletions

View File

@@ -106,7 +106,7 @@ jobs:
submodules: recursive
- name: Install build tools
run: choco install winflexbison mingw -y
run: choco install winflexbison -y
shell: pwsh
- name: Setup Python
@@ -123,20 +123,8 @@ jobs:
- name: Build with MinGW
run: |
conan install . `
-s compiler=gcc `
-s compiler.version=13 `
-s compiler.libcxx=libstdc++11 `
-s arch=x86_64 `
-s os=Windows `
--build=missing
conan build . `
-s compiler=gcc `
-s compiler.version=13 `
-s compiler.libcxx=libstdc++11 `
-s arch=x86_64 `
-s os=Windows `
--build=missing
conan install .
conan build .
shell: pwsh
- name: Package

View File

@@ -51,7 +51,17 @@ set_target_properties(argon PROPERTIES
find_package(BDWgc REQUIRED)
find_package(gmp REQUIRED)
target_compile_options(argon PRIVATE -O3 -Wall -Wextra -Wno-unused-function -s)
target_compile_options(argon PRIVATE -O3 -Wall -s)
if(MSVC)
# Disable warning C4061 (enum in switch not handled)
target_compile_options(argon PRIVATE /wd4061)
# Disable Spectre mitigation warning C5045
target_compile_options(argon PRIVATE /wd5045)
# Optionally, remove "treat warnings as errors" if enabled
# target_compile_options(argon PRIVATE /WX-) # uncomment if you previously used /WX
endif()
if(NOT APPLE)
target_link_options(argon PRIVATE -static)
endif()