aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/makefile
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-03-31 12:20:00 +1100
committerNeil <nyamatongwe@gmail.com>2018-03-31 12:20:00 +1100
commit9ef91ecec68d38ff4e0428a213d2036b3d99f898 (patch)
treea3651419f8aca9fec07935f191ed1e1bd05b1f2c /win32/makefile
parent9f2bbd79a254363a06aaf562dfdd135e1dccbd58 (diff)
downloadscintilla-mirror-9ef91ecec68d38ff4e0428a213d2036b3d99f898.tar.gz
Make clang 6.0 build without warnings. Requires clang to be on the path now.
Diffstat (limited to 'win32/makefile')
-rw-r--r--win32/makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/win32/makefile b/win32/makefile
index 86c7e6792..183c732b5 100644
--- a/win32/makefile
+++ b/win32/makefile
@@ -13,8 +13,11 @@ LEXCOMPONENT = $(DIR_BIN)/SciLexer.dll
LIBSCI = $(DIR_BIN)/libscintilla.a
ifdef CLANG
-# Common location for 32-bit clang on Windows
-CXX = "C:\Program Files (x86)\LLVM\bin\clang++"
+CXX = clang++
+# Clang doesn't like omitting braces in array initialization but they just add noise,
+# __uuidof is a Microsoft extension but makes COM code neater,
+# public visibility avoids warnings like 'locally defined symbol __std_terminate imported'
+CLANG_OPTS = -Wno-missing-braces -Wno-language-extension-token -Xclang -flto-visibility-public-std
else
# MinGW GCC
LDMINGW = -Wl,--enable-runtime-pseudo-reloc-v2 -Wl,--add-stdcall-alias
@@ -50,7 +53,7 @@ ifdef ENABLE_BIDIRECTIONAL
BIDIFLAGS=-DENABLE_BIDIRECTIONAL
endif
-CXXBASEFLAGS=--std=$(CXXSTD) -Wall -pedantic $(INCLUDEDIRS) $(D2DFLAGS) $(BIDIFLAGS) -D_CRT_SECURE_NO_DEPRECATE=1
+CXXBASEFLAGS=--std=$(CXXSTD) -Wall -pedantic $(INCLUDEDIRS) $(D2DFLAGS) $(BIDIFLAGS) -D_CRT_SECURE_NO_DEPRECATE=1 $(CLANG_OPTS)
ifdef NO_CXX11_REGEX
REFLAGS=-DNO_CXX11_REGEX