mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-01 09:41:08 +00:00
[SystemZ] Allow configuring default CLANG_SYSTEMZ_ARCH
On Ubuntu, we want to raise default CLANG_SYSTEMZ_ARCH to z13, thus allow configuring this via CMake. On Debian, we want to raise it to z196. Author: Dimitri John Ledkov Differential Revision: https://reviews.llvm.org/D75914
This commit is contained in:
parent
11a5caee2a
commit
9c9d88d8b1
@ -306,6 +306,10 @@ if (NOT DEFINED MATCHED_ARCH OR "${CMAKE_MATCH_1}" LESS 35)
|
||||
"Default architecture for OpenMP offloading to Nvidia GPUs." FORCE)
|
||||
endif()
|
||||
|
||||
set(CLANG_SYSTEMZ_DEFAULT_ARCH "z10" CACHE STRING
|
||||
"SystemZ Default Arch")
|
||||
add_definitions( -DCLANG_SYSTEMZ_DEFAULT_ARCH="${CLANG_SYSTEMZ_DEFAULT_ARCH}")
|
||||
|
||||
set(CLANG_VENDOR ${PACKAGE_VENDOR} CACHE STRING
|
||||
"Vendor-specific text for showing with version information.")
|
||||
|
||||
|
@ -47,7 +47,7 @@ std::string systemz::getSystemZTargetCPU(const ArgList &Args) {
|
||||
|
||||
return std::string(CPUName);
|
||||
}
|
||||
return "z10";
|
||||
return CLANG_SYSTEMZ_DEFAULT_ARCH;
|
||||
}
|
||||
|
||||
void systemz::getSystemZTargetFeatures(const Driver &D, const ArgList &Args,
|
||||
|
Loading…
Reference in New Issue
Block a user