From b300797b71c36c6e5dacbacf200664f7dfe8dc7e Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 24 Jul 2024 21:25:45 +0900 Subject: [PATCH] wamrc: Add --mllvm= option (#3658) This allows users to specify llvm command line options, similarly to clang's -mllvm option. My motivations: * -debug and friends * -mtext-section-literals for xtensa --- wamr-compiler/main.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/wamr-compiler/main.c b/wamr-compiler/main.c index ae24ee5bc..7f1c34f66 100644 --- a/wamr-compiler/main.c +++ b/wamr-compiler/main.c @@ -9,6 +9,8 @@ #include "wasm_export.h" #include "aot_export.h" +#include + #if BH_HAS_DLFCN #include @@ -195,6 +197,7 @@ print_help() #if WASM_ENABLE_LINUX_PERF != 0 printf(" --enable-linux-perf Enable linux perf support\n"); #endif + printf(" --mllvm=