vcpkg/ports/libvpx/0002-Fix-nasm-debug-format-flag.patch
Martin Vejdarski 4a753ba9ec
[libvpx] Update to latest and add support for arm64 on macOS (#18183)
* [libvpx] Update to latest and add support for arm64 on macOS

* [libvpx] x-add-version

* [libvpx] Restore patch line endings

* [libvpx] x-add-version

* Update ports/libvpx/portfile.cmake

Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>

* [libvpx] x-add-version

Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
2021-06-10 11:44:46 -07:00

22 lines
807 B
Diff

diff --git a/build/make/configure.sh b/build/make/configure.sh
index 81d30a16c..d4f19cd97 100644
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -1370,12 +1370,14 @@ EOF
case ${tgt_os} in
win32)
add_asflags -f win32
- enabled debug && add_asflags -g cv8
+ enabled debug && [ "${AS}" = yasm ] && add_asflags -g cv8
+ enabled debug && [ "${AS}" = nasm ] && add_asflags -gcv8
EXE_SFX=.exe
;;
win64)
add_asflags -f win64
- enabled debug && add_asflags -g cv8
+ enabled debug && [ "${AS}" = yasm ] && add_asflags -g cv8
+ enabled debug && [ "${AS}" = nasm ] && add_asflags -gcv8
EXE_SFX=.exe
;;
linux*|solaris*|android*)