[vlc-commits] contrib: only enable PDB for Clang builds for x86 and x64 targets
Steve Lhomme
git at videolan.org
Thu Jun 18 18:32:04 CEST 2020
vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon May 18 11:19:35 2020 +0200| [f4a1f99eaefadd7c7770e1af1459c0ffd45aaf85] | committer: Steve Lhomme
contrib: only enable PDB for Clang builds for x86 and x64 targets
It's not supported for other targets
(cherry picked from commit 2e1b1609ca75a2b401b2136100b521db9277cade) (rebased)
rebased:
- the gcodeview section is located elsewhere in this branch
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=f4a1f99eaefadd7c7770e1af1459c0ffd45aaf85
---
contrib/src/main.mak | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 2329f83439..5000c5da4c 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -313,9 +313,13 @@ CXXFLAGS := $(CXXFLAGS) -g -O2
endif
ifdef ENABLE_PDB
+ifdef HAVE_CLANG
+ifneq ($(findstring $(ARCH),i686 x86_64),)
CFLAGS := $(CFLAGS) -gcodeview
CXXFLAGS := $(CXXFLAGS) -gcodeview
endif
+endif
+endif
HOSTVARS := $(HOSTTOOLS) \
CPPFLAGS="$(CPPFLAGS)" \
More information about the vlc-commits
mailing list