diff options
author | Pavel Labath <labath@google.com> | 2017-12-08 09:59:48 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2017-12-08 09:59:48 +0000 |
commit | f5f0fffea5ace079cc208fafa65150d23935a4d9 (patch) | |
tree | 2da86db69a9adaef9658d1dcf18c0b56cafc3a58 /llvm/lib/CodeGen/MachineOperand.cpp | |
parent | 2cf601f28f158cdce3c7640186e46a65bf308fc0 (diff) | |
download | llvm-f5f0fffea5ace079cc208fafa65150d23935a4d9.zip llvm-f5f0fffea5ace079cc208fafa65150d23935a4d9.tar.gz llvm-f5f0fffea5ace079cc208fafa65150d23935a4d9.tar.bz2 |
[cmake] Make setting of CMAKE_C(XX)_COMPILER flags overridable for cross-builds
Summary:
r319898 made it possible to override these variables via the
CROSS_TOOLCHAIN_FLAGS setting, but this only worked if one explicitly
specifies these variables there. If, instead, one uses
CROSS_TOOLCHAIN_FLAGS to specify a toolchain file (as our internal
builds do, to point cmake to a checked-in toolchain), the
CMAKE_C(XX)_COMPILER flags would still win over the ones specified by
the toolchain file.
To fix is to make the mere presence of these flags overridable. I do
this by putting them as a default value for the CROSS_TOOLCHAIN_FLAGS
setting, so they can be overridden at cmake configuration time.
Reviewers: hintonda, beanz
Subscribers: bogner, llvm-commits, mgorny
Differential Revision: https://reviews.llvm.org/D40947
llvm-svn: 320138
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
0 files changed, 0 insertions, 0 deletions