[vlc-devel] [PATCH] contrib: only enable PDB for Clang builds for x86 and x64 targets

Steve Lhomme robux4 at ycbcr.xyz
Wed May 20 15:46:17 CEST 2020


It's not supported for other targets
---
 contrib/src/main.mak | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index f008b20a99d4..c48204608872 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -190,9 +190,13 @@ CXXFLAGS := $(CXXFLAGS) $(EXTRA_CFLAGS) $(EXTRA_CXXFLAGS)
 LDFLAGS := $(LDFLAGS) -L$(PREFIX)/lib $(EXTRA_LDFLAGS)
 
 ifdef ENABLE_PDB
+ifdef HAVE_CLANG
+ifneq ($(findstring $(ARCH),i686 x86_64),)
 CFLAGS := $(CFLAGS) -gcodeview
 CXXFLAGS := $(CXXFLAGS) -gcodeview
 endif
+endif
+endif
 
 # Do not export those! Use HOSTVARS.
 
-- 
2.26.2



More information about the vlc-devel mailing list