Don't build tblgen with -pedantic or -Wno-long-long
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28638 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/TableGen/Makefile b/utils/TableGen/Makefile
index b396cd7..ec6d7c8 100644
--- a/utils/TableGen/Makefile
+++ b/utils/TableGen/Makefile
@@ -14,6 +14,10 @@
include $(LEVEL)/Makefile.common
+# Disable -pedantic for tblgen
+CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
+CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
+
#
# Make the source file depend on the header file. In this way, dependencies
# (which depend on the source file) won't get generated until bison is done