File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,6 @@ include(CMakePackageConfigHelpers)
3333include (GNUInstallDirs)
3434find_package (PkgConfig)
3535
36- if (CMAKE_C_COMPILER_ID STREQUAL "IntelLLVM" )
37- # Compiler dependencies needs to be in library path or to be linked
38- # statically
39- add_link_options (-static -intel)
40- endif ()
41-
4236# Build Options
4337option (UMF_BUILD_SHARED_LIBRARY "Build UMF as shared library" OFF )
4438option (UMF_BUILD_LEVEL_ZERO_PROVIDER "Build Level Zero memory provider" ON )
Original file line number Diff line number Diff line change 1- # Copyright (C) 2023-2024 Intel Corporation
1+ # Copyright (C) 2023-2025 Intel Corporation
22# Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
33# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44
@@ -378,6 +378,9 @@ function(add_umf_library)
378378 elseif (LINUX)
379379 target_link_options (${ARG_NAME} PRIVATE
380380 "-Wl,--version-script=${ARG_LINUX_MAP_FILE} " )
381+ if (CMAKE_C_COMPILER_ID STREQUAL "IntelLLVM" )
382+ target_link_options (${ARG_NAME} PRIVATE -no -intel-lib)
383+ endif ()
381384 endif ()
382385 endif ()
383386
You can’t perform that action at this time.
0 commit comments