Compare commits
1 Commits
prerelease
...
prerelease
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d8f262185 |
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
@@ -117,17 +117,16 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install conan
|
pip install conan
|
||||||
conan profile detect
|
conan profile new default --detect
|
||||||
|
conan profile update settings.compiler.version=13 default
|
||||||
|
conan profile update settings.compiler=gcc default
|
||||||
|
conan profile update settings.os=Windows default
|
||||||
|
conan profile update env.CC=x86_64-w64-mingw32-gcc default
|
||||||
|
conan profile update env.CXX=x86_64-w64-mingw32-g++ default
|
||||||
|
|
||||||
- name: Build Windows with MinGW
|
- name: Build Windows with MinGW
|
||||||
run: |
|
run: |
|
||||||
conan install . \
|
conan install . --profile:host=default --profile:build=default --build=missing
|
||||||
-s os=Windows \
|
|
||||||
-s compiler=gcc \
|
|
||||||
-s compiler.version=13 \
|
|
||||||
-s compiler.libcxx=libstdc++11 \
|
|
||||||
-s arch=x86_64 \
|
|
||||||
--build=missing
|
|
||||||
conan build .
|
conan build .
|
||||||
|
|
||||||
- name: Package Windows build
|
- name: Package Windows build
|
||||||
|
|||||||
@@ -51,17 +51,7 @@ set_target_properties(argon PROPERTIES
|
|||||||
find_package(BDWgc REQUIRED)
|
find_package(BDWgc REQUIRED)
|
||||||
find_package(gmp REQUIRED)
|
find_package(gmp REQUIRED)
|
||||||
|
|
||||||
target_compile_options(argon PRIVATE -O3 -Wall -s)
|
target_compile_options(argon PRIVATE -O3 -Wall -Wextra -Wno-unused-function -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)
|
if(NOT APPLE)
|
||||||
target_link_options(argon PRIVATE -static)
|
target_link_options(argon PRIVATE -static)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user