aboutsummaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2016-08-11 11:33:55 +0200
committerMarco Bubke <marco.bubke@qt.io>2016-08-11 10:24:58 +0000
commitde2eedf5990741a11b965cd174e252694b5cadea (patch)
treeb74684db3fdf162edbbafe94f65ae9f8e08d43f3 /src/shared
parent0b3abfcf6ae88739f6c878817ca56e69f79e1801 (diff)
Clang: Add defines for llvm
Actually we maybe should use llvm-config --cxxflags but before we do that we should evaluate possible compile breaks. Change-Id: I534605c6f61217bfe985bef22af7d1dc9ac79637 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/clang/clang_installation.pri2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/clang/clang_installation.pri b/src/shared/clang/clang_installation.pri
index 8c3922c01b..d9279155b3 100644
--- a/src/shared/clang/clang_installation.pri
+++ b/src/shared/clang/clang_installation.pri
@@ -98,3 +98,5 @@ isEmpty(LLVM_VERSION): error("Cannot determine clang version at $$LLVM_INSTALL_D
!versionIsAtLeast($$LLVM_VERSION, 3, 8, 0): {
error("LLVM/Clang version >= 3.8.0 required, version provided: $$LLVM_VERSION")
}
+
+unix:LLVM_CXXFLAGS = -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS