1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 12:43:36 +01:00
llvm-mirror/tools/llvm-rc
Martin Storsjö 4a1d40cba0 [llvm-rc] Try to fix the Preprocessor/llvm-rc.rc test on non arm/x86 architectures
When llvm-rc invokes clang for preprocessing, it uses a target
triple derived from the default target. The test verifies that
e.g. _WIN32 is defined when preprocessing.

If running clang with e.g. -target ppc64le-windows-msvc, that
particular arch/OS combination isn't hooked up, so _WIN32 doesn't
get defined in that configuration. Therefore, the preprocessing
test fails.

Instead make llvm-rc inspect the architecture of the default target.
If it's one of the known supported architectures, use it as such,
otherwise set a default one (x86_64). (Clang can run preprocessing
with an x86_64 target triple, even if the x86 backend isn't
enabled.)

Also remove superfluous llvm:: specifications on enums in llvm-rc.cpp.
2021-04-21 12:47:33 +03:00
..
CMakeLists.txt
llvm-rc.cpp [llvm-rc] Try to fix the Preprocessor/llvm-rc.rc test on non arm/x86 architectures 2021-04-21 12:47:33 +03:00
Opts.td [llvm-rc] Run clang to preprocess input files 2021-04-21 11:50:10 +03:00
ResourceFileWriter.cpp [llvm-rc] Fix handling of the /X option to match its documentation and rc.exe 2021-04-20 09:22:43 +03:00
ResourceFileWriter.h [llvm-rc] Fix handling of the /X option to match its documentation and rc.exe 2021-04-20 09:22:43 +03:00
ResourceScriptCppFilter.cpp
ResourceScriptCppFilter.h
ResourceScriptParser.cpp [llvm-rc] Allow omitting components from VERSIONINFO versions 2020-09-16 09:34:26 +03:00
ResourceScriptParser.h
ResourceScriptStmt.cpp [llvm-rc] Allow string table values split into multiple string literals 2020-08-05 08:59:32 +03:00
ResourceScriptStmt.h [llvm-rc] Allow string table values split into multiple string literals 2020-08-05 08:59:32 +03:00
ResourceScriptToken.cpp std::isspace -> llvm::isSpace (where locale should be ignored) 2020-05-02 15:36:04 +02:00
ResourceScriptToken.h
ResourceScriptTokenList.def
ResourceVisitor.h