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

Steve Lhomme git at videolan.org
Tue May 26 09:41:10 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon May 18 11:19:35 2020 +0200| [2e1b1609ca75a2b401b2136100b521db9277cade] | committer: Steve Lhomme

contrib: only enable PDB for Clang builds for x86 and x64 targets

It's not supported for other targets

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2e1b1609ca75a2b401b2136100b521db9277cade
---

 contrib/src/main.mak | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index f008b20a99..c482046088 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.
 



More information about the vlc-commits mailing list