Skip to content

Commit

Permalink
Add link flags for static linking with ICX libs (#1489)
Browse files Browse the repository at this point in the history
---------

Signed-off-by: pavelkumbrasev <pavel.kumbrasev@intel.com>
  • Loading branch information
Pavel Kumbrasev authored Aug 23, 2024
1 parent 85a948b commit 5555985
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/compilers/IntelLLVM.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2020-2023 Intel Corporation
# Copyright (c) 2020-2024 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -20,6 +20,9 @@ if (WIN32)
else()
include(${CMAKE_CURRENT_LIST_DIR}/Clang.cmake)
set(TBB_IPO_COMPILE_FLAGS $<$<NOT:$<CONFIG:Debug>>:-ipo>)
# "--exclude-libs,ALL" is used to avoid accidental exporting of symbols
# from statically linked libraries
set(TBB_LIB_LINK_FLAGS ${TBB_LIB_LINK_FLAGS} -static-intel -Wl,--exclude-libs,ALL)
set(TBB_OPENMP_FLAG -qopenmp)
endif()
set(TBB_IPO_LINK_FLAGS ${TBB_IPO_LINK_FLAGS} ${TBB_IPO_COMPILE_FLAGS})

0 comments on commit 5555985

Please sign in to comment.