mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-11 08:29:25 +00:00
check-llvm: Ask llvm-config about assertion mode, instead of llc.
Add --assertion-mode to llvm-config. It emits ON or OFF according to NDEBUG. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196329 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -154,6 +154,7 @@ Options:\n\
|
||||
--targets-built List of all targets currently built.\n\
|
||||
--host-target Target triple used to configure LLVM.\n\
|
||||
--build-mode Print build mode of LLVM tree (e.g. Debug or Release).\n\
|
||||
--assertion-mode Print assertion mode of LLVM tree (ON or OFF).\n\
|
||||
Typical components:\n\
|
||||
all All LLVM libraries (default).\n\
|
||||
engine Either a native JIT or a bitcode interpreter.\n";
|
||||
@@ -306,6 +307,12 @@ int main(int argc, char **argv) {
|
||||
build_mode = CMAKE_CFG_INTDIR;
|
||||
#endif
|
||||
OS << build_mode << '\n';
|
||||
} else if (Arg == "--assertion-mode") {
|
||||
#if defined(NDEBUG)
|
||||
OS << "OFF\n";
|
||||
#else
|
||||
OS << "ON\n";
|
||||
#endif
|
||||
} else if (Arg == "--obj-root") {
|
||||
OS << LLVM_OBJ_ROOT << '\n';
|
||||
} else if (Arg == "--src-root") {
|
||||
|
Reference in New Issue
Block a user