[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:
Ulrich Weigand 2020-03-30 14:20:48 +02:00
parent 11a5caee2a
commit 9c9d88d8b1
2 changed files with 5 additions and 1 deletions

View File

@ -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.")

View File

@ -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,