aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-12-29 11:02:36 +1100
committerNeil <nyamatongwe@gmail.com>2019-12-29 11:02:36 +1100
commita9d4d9cc99b8f5bf24aad8fb0b11c893565c9ce3 (patch)
treecedb5a8c60c8f8dd91ed4e11a59e8a6e632db535 /gtk
parent07e215b1cfb224a7e77304499df886a83080ff8a (diff)
downloadscintilla-mirror-a9d4d9cc99b8f5bf24aad8fb0b11c893565c9ce3.tar.gz
Backport: Support Clang on Windows.
Backport of changeset 7852:876b77cb9acd.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk/makefile b/gtk/makefile
index 8e433edaf..ef557eb95 100644
--- a/gtk/makefile
+++ b/gtk/makefile
@@ -17,6 +17,18 @@ ifdef CLANG
CXX = clang++
CC = clang
WARNINGS += -Wno-deprecated-register
+ifdef windir
+# Turn off some warnings that occur when Clang is being used on Windows where it
+# is including Microsoft headers.
+# incompatible-ms-struct is because more complex structs are not quite the same as MSVC
+WARNINGS += -Wno-incompatible-ms-struct
+# language-extension-token is because of __int64 in glib-2.0 glibconfig.h
+WARNINGS += -Wno-language-extension-token
+# register may be used in glib
+# This produces a warning since -Wno-register is not valid for C files but it still works
+WARNINGS += -Wno-register
+DEFINES += -D_CRT_SECURE_NO_DEPRECATE
+endif
# Can choose aspect to sanitize: address and undefined can simply change SANITIZE but for
# thread also need to create Position Independent Executable -> search online documentation
SANITIZE = address