diff options
author | Martin Storsjö <martin@martin.st> | 2023-05-14 23:14:43 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2023-05-16 21:27:35 +0300 |
commit | 4072c8aee4c89c4457f4f30d01dc9bb4dfa52559 (patch) | |
tree | be79132ff157dfb99aa35efa1d83bc1054a5ed8e /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | be556c838de06c3c2f69bf594996cace6ffa17eb (diff) | |
download | llvm-4072c8aee4c89c4457f4f30d01dc9bb4dfa52559.zip llvm-4072c8aee4c89c4457f4f30d01dc9bb4dfa52559.tar.gz llvm-4072c8aee4c89c4457f4f30d01dc9bb4dfa52559.tar.bz2 |
[OpenMP] Compile assembly files as ASM, not C
Since CMake 3.20, CMake explicitly passes "-x c" (or equivalent)
when compiling a file which has been set as having the language
C. This behaviour change only takes place if "cmake_minimum_required"
is set to 3.20 or newer, or if the policy CMP0119 is set to new.
Attempting to compile assembly files with "-x c" fails, however
this is workarounded in many cases, as OpenMP overrides this with
"-x assembler-with-cpp", however this is only added for non-Windows
targets.
Thus, after increasing cmake_minimum_required to 3.20, this breaks
compiling the GNU assembly for Windows targets; the GNU assembly is
used for ARM and AArch64 Windows targets when building with Clang.
This patch unbreaks that.
Differential Revision: https://reviews.llvm.org/D150532
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions