Commit Graph

9 Commits

Author SHA1 Message Date
Ivan Donchevskii
b4417527ca Clang: Move 'disable_external_rpath' to clang_installation.pri
It should be required for every project part which
depends on LLVM.

Change-Id: I8d645661dfa4fc4858bb40e156671a0ecf0bdbe3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-04-30 11:51:51 +00:00
Oswald Buddenhagen
bb027e10a8 fix llvm libdir handling wrt RPATH, more or less properly
we must not add the llvm libdir if it's a system path. this was already
done in some places, but not in others.

while we're at it, re-shuffle some pre-existing conditionals to make
things consistent.

Task-number: QTCREATORBUG-20178
Change-Id: Ib7e5a81705494e4cf2f83a4782ecd0832b91e511
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
2018-04-09 12:54:53 +00:00
Marco Bubke
7c0331ab93 Clang: Rename library clangbackendipc to clangsupport
We already share same classes there which has nothing to do with IPC and
I want to more for sharing. So we should use a name which fits better.

Change-Id: Idfb12b6de714206117b92634ad719c6a0e290e78
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-08-29 16:36:35 +00:00
Marco Bubke
d964df58a2 Clang: Fix clang refactoring enabling
Change-Id: Icdd539c4e537e5aab55943010055c9719dd622fe
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-07-20 11:42:06 +00:00
Tim Jenssen
d2f615dca5 Clang: Use llvm_config --cxxflags
Using llvm_config --cxxflags can be potential dangerous. We should test
every configuration if it is compiling. It has the advantage that we don't
need to care anymore about incompatible flags to the used clang version.

Change-Id: I3bbddb1935dca9896c64ebafd1fbe72840db8bd4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-07 11:38:17 +00:00
Marco Bubke
8151a09fdc Clang: Requires a clang debug build for windows
Under windows you cannot mix debug and release builds. So we require that
clang is build as debug if the creator is build in debug.

Change-Id: Ie46a1f13d83a7afbf81129ed75d0519fa9f5268d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-09-20 13:08:14 +00:00
Marco Bubke
c5da4a3df8 Clang: Disable RTTI for refactoring backend
LLVM is normally not compiled with RTTI so we get link errors. We should
use "llvm-config --cxxflags" but before we can use it we should be sure
that we don't break something.

Change-Id: If45afcd625273230960a2c2065877f2512a53209
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-08-11 11:32:49 +00:00
Marco Bubke
de2eedf599 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>
2016-08-11 10:24:58 +00:00
Marco Bubke
4cdb5bab15 Clang: Add clang refactoring
Change-Id: I2e3f36f810276da3f8dc7dcc587b06f8edb586d3
GPush-Base: d02f51b48fc752fddcdef6dcb32b3f7f6c0195a3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-08-04 14:37:19 +00:00