diff options
author | Markus Böck <markus.boeck02@gmail.com> | 2022-01-02 12:06:54 +0100 |
---|---|---|
committer | Markus Böck <markus.boeck02@gmail.com> | 2022-01-02 12:06:54 +0100 |
commit | dbeeb136abcb03eaa85e2ee47a5169f5298e8944 (patch) | |
tree | 43411a3740fe51df00a769014df53b80212dacb5 /llvm/unittests/Support/LinearPolyBaseTest.cpp | |
parent | 1b708b67f625507cf2c24319b30479cc2af41c86 (diff) | |
download | llvm-dbeeb136abcb03eaa85e2ee47a5169f5298e8944.zip llvm-dbeeb136abcb03eaa85e2ee47a5169f5298e8944.tar.gz llvm-dbeeb136abcb03eaa85e2ee47a5169f5298e8944.tar.bz2 |
[clang][MinGW] Explicitly ignore `-fPIC` & friends
GCC on Windows ignores this flag completely [0] which some build systems sadly rely on when compiling for Windows using MinGW. The current behaviour of clang however is to error out as -fPIC & friends has no effect on Windows.
This patch instead changes the behaviour for MinGW to ignore the option for the sake of compatibility
Fixes https://github.com/llvm/llvm-project/issues/52947
[0] https://gcc.gnu.org/legacy-ml/gcc-patches/2015-08/msg00836.html
Differential Revision: https://reviews.llvm.org/D116485
Diffstat (limited to 'llvm/unittests/Support/LinearPolyBaseTest.cpp')
0 files changed, 0 insertions, 0 deletions