Skip to content

Commit

Permalink
check windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hiimjustin000 authored Nov 8, 2024
1 parent e2a2c6a commit e5c21e1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,11 @@ runs:
if [ "${{ inputs.use-lto }}" = "true" ]; then
CMAKE_EXTRA_ARGS="$CMAKE_EXTRA_ARGS -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON"
fi
if [ "${{ inputs.bundle-pdb }}" = "true" ]; then
if [ "${{ inputs.bundle-pdb }}" = "true" ] && [ ${{ steps.platform.outputs.id }} = "win" ]; then
MOD_ID=$(jq -r '.id' mod.json)
PDB_ARGS+=(-DCMAKE_CXX_FLAGS="-Xlinker /PDBALTPATH:geode/unzipped/$MOD_ID/$MOD_ID.pdb")
PDB_ARGS+=(-DCMAKE_SHARED_LINKER_FLAGS="-Xlinker /PDBALTPATH:geode/unzipped/$MOD_ID/$MOD_ID.pdb")
CMAKE_EXTRA_ARGS="$CMAKE_EXTRA_ARGS -DGEODE_BUNDLE_PDB=ON"
fi
set -x
cmake -B build -DCMAKE_BUILD_TYPE=${{ inputs.build-config }} -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DGEODE_CODEGEN_CMAKE_ARGS="-DCMAKE_C_COMPILER=clang;-DCMAKE_CXX_COMPILER=clang++;-G Ninja" -G Ninja $CMAKE_EXTRA_ARGS "${PDB_ARGS[@]}" -DGEODE_DONT_INSTALL_MODS=ON -DGEODE_TARGET_PLATFORM=${{ steps.platform.outputs.target }} ${{ inputs.configure-args }}
cmake --build build --config ${{ inputs.build-config }} ${{ inputs.build-args }}
Expand Down

0 comments on commit e5c21e1

Please sign in to comment.