diff options
author | Neil <nyamatongwe@gmail.com> | 2019-12-29 11:02:36 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2019-12-29 11:02:36 +1100 |
commit | 1626fbbff24966c6562942fa23832e5c87019173 (patch) | |
tree | 4ff9f52457b1f84a44ba0f26f523bd10adba2edd | |
parent | 4044cf5fdff8441b53550d84d9ca61f2c56ff8b7 (diff) | |
download | scintilla-mirror-1626fbbff24966c6562942fa23832e5c87019173.tar.gz |
Support Clang on Windows.
-rw-r--r-- | gtk/makefile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk/makefile b/gtk/makefile index 86e28061d..be280b7e0 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 |