https://github.com/hiraditya updated 
https://github.com/llvm/llvm-project/pull/68358

>From 1e90114dd6ca671671d66460378de9ebf5b4dda0 Mon Sep 17 00:00:00 2001
From: AdityaK <1894981+hiradi...@users.noreply.github.com>
Date: Thu, 5 Oct 2023 11:41:21 -0700
Subject: [PATCH] Add cmake c,cxx,asm,linker flags

Fixes: #68356
---
 bolt/CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bolt/CMakeLists.txt b/bolt/CMakeLists.txt
index f163d45342874d0..0d07cb43eea82b7 100644
--- a/bolt/CMakeLists.txt
+++ b/bolt/CMakeLists.txt
@@ -97,7 +97,11 @@ if (BOLT_ENABLE_RUNTIME)
     STAMP_DIR ${CMAKE_CURRENT_BINARY_DIR}/bolt_rt-stamps
     BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/bolt_rt-bins
     CMAKE_ARGS -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
+               -DCMAKE_ASM_FLAGS=${CMAKE_ASM_FLAGS}
+               -DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}
+               -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}
                -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
+               -DCMAKE_EXE_LINKER_FLAGS=${CMAKE_EXE_LINKER_FLAGS}
                -DCMAKE_BUILD_TYPE=Release
                -DCMAKE_MAKE_PROGRAM=${CMAKE_MAKE_PROGRAM}
                -DLLVM_LIBDIR_SUFFIX=${LLVM_LIBDIR_SUFFIX}

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to