[compiler-rt] [llvm] [memprof] Use -memprof-default-options to set options during compile time (PR #118874)
Snehasish Kumar via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 5 20:01:53 PST 2024
================
@@ -1,5 +1,8 @@
// RUN: %clangxx_memprof -O2 %s -o %t && %run %t 2>&1 | FileCheck %s
+// Check that overriding __memprof_default_options() takes precedence over the LLVM flag
+// RUN: %clangxx_memprof -O2 %s -o %t-flag -mllvm -memprof-runtime-default-options="verbosity=0 help=0" && %run %t-flag 2>&1 | FileCheck %s
+
const char *kMemProfDefaultOptions = "verbosity=1 help=1";
extern "C" const char *__memprof_default_options() {
----------------
snehasish wrote:
Thanks for pointing that out.
https://github.com/llvm/llvm-project/pull/118874
More information about the llvm-commits
mailing list