From 45b061807891616d30de0e48a5f60df5de06a73e Mon Sep 17 00:00:00 2001 From: Abhilash Majumder <30946547+abhilash1910@users.noreply.github.com> Date: Fri, 26 Jan 2024 20:49:25 +0530 Subject: [PATCH] Update CMakeLists.txt Co-authored-by: Georgi Gerganov --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9b7796ebd..32370f07b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -516,10 +516,10 @@ function(get_flags CCID CCVER) endif() elseif (CCID MATCHES "Intel") if (NOT LLAMA_SYCL) - # enable max optimization level when using Intel compiler - set(C_FLAGS -ipo -O3 -static -fp-model=fast -flto -fno-stack-protector) - set(CXX_FLAGS -ipo -O3 -static -fp-model=fast -flto -fno-stack-protector) - add_link_options(-fuse-ld=lld -static-intel) + # enable max optimization level when using Intel compiler + set(C_FLAGS -ipo -O3 -static -fp-model=fast -flto -fno-stack-protector) + set(CXX_FLAGS -ipo -O3 -static -fp-model=fast -flto -fno-stack-protector) + add_link_options(-fuse-ld=lld -static-intel) endif() endif()