Skip to content

Commit 8a2cbb4

Browse files
committed
trying to make git actions ignore bass safety
1 parent e91e011 commit 8a2cbb4

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: mkdir build
2828

2929
- name: Configure CMake
30-
run: cmake -S . -B build -A Win32 -DCMAKE_BUILD_TYPE=${{ matrix.config }}
30+
run: cmake -S . -B build -A Win32 -DCMAKE_BUILD_TYPE=${{ matrix.config }} -DGITHUB_ACTIONS=ON
3131

3232
- name: Build
3333
run: cmake --build build --config ${{ matrix.config }}

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ if (POLICY CMP0141)
88
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<IF:$<AND:$<C_COMPILER_ID:MSVC>,$<CXX_COMPILER_ID:MSVC>>,$<$<CONFIG:Debug,RelWithDebInfo>:EditAndContinue>,$<$<CONFIG:Debug,RelWithDebInfo>:ProgramDatabase>>")
99
endif()
1010

11+
option(GITHUB_ACTIONS "Building in GitHub Actions" OFF)
12+
13+
if(MSVC AND GITHUB_ACTIONS)
14+
message(STATUS "GitHub Actions, adding /SAFESEH:NO, screw you BASS")
15+
add_link_options(/SAFESEH:NO)
16+
endif()
17+
1118
set(CMAKE_C_STANDARD 17)
1219
set(CMAKE_CXX_STANDARD 14)
1320
set(CMAKE_CXX_STANDARD_REQUIRED ON)

0 commit comments

Comments
 (0)