History

ci/mingw: use GAS for vulkan loader

this allows us to securely bundle the vulkan loader and include it in CI artifacts

Andarwinux committed 2 years ago

Commit bcab4511 parent a46ce9e1 file · +7 −2Browse files

Unified · Split

ci/build-mingw64.sh+7−2
@@ -10,6 +10,7 @@ gitclone="git clone --depth=1 --recursive --shallow-submodules" · 9 unmodified lines
1010
1111 # -posix is Ubuntu's variant with pthreads support
1212 export CC=$TARGET-gcc-posix
13+export AS=$TARGET-gcc-posix
1314 export CXX=$TARGET-g++-posix
1415 export AR=$TARGET-ar
1516 export NM=$TARGET-nm
@@ -50,9 +51,11 @@ EOF · 34 unmodified lines
5051 # CMake
5152 cmake_args=(
5253 -Wno-dev
54+ -DCMAKE_SYSTEM_PROCESSOR="${fam}"
5355 -DCMAKE_SYSTEM_NAME=Windows
5456 -DCMAKE_FIND_ROOT_PATH="$PKG_CONFIG_SYSROOT_DIR"
5557 -DCMAKE_RC_COMPILER="${TARGET}-windres"
58+ -DCMAKE_ASM_COMPILER="$AS"
5659 -DCMAKE_BUILD_TYPE=Release
5760 )
5861
@@ -192,7 +195,7 @@ _vulkan_loader () { · 133 unmodified lines
192195 [ -d Vulkan-Loader ] || $gitclone https://github.com/KhronosGroup/Vulkan-Loader
193196 builddir Vulkan-Loader
194197 cmake .. "${cmake_args[@]}" \
195− -DENABLE_WERROR=OFF
198+ -DENABLE_WERROR=OFF -DUSE_GAS=ON
196199 makeplusinstall
197200 popd
198201 }
@@ -310,8 +313,10 @@ if [ "$2" = pack ]; then · 111 unmodified lines
310313 libgcc_*.dll lib{ssp,stdc++,winpthread}-[0-9]*.dll # compiler runtime
311314 av*.dll sw*.dll lib{ass,freetype,fribidi,harfbuzz,iconv,placebo}-[0-9]*.dll
312315 lib{shaderc_shared,spirv-cross-c-shared,dav1d}.dll zlib1.dll
313− # note: vulkan-1.dll is not here since drivers provide it
314316 )
317+ if [[ -f vulkan-1.dll ]]; then
318+ dlls+=(vulkan-1.dll)
319+ fi
315320 mv -v "${dlls[@]}" ..
316321 popd
317322

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t