Skip to content

Commit 6f0ba27

Browse files
Report if IPO is requested but disabled because not supported (#1994)
1 parent 0b30ba3 commit 6f0ba27

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Copyright (c) 2020-2025 Intel Corporation
2+
# Copyright (c) 2026 UXL Foundation Contributors
23
#
34
# Licensed under the Apache License, Version 2.0 (the "License");
45
# you may not use this file except in compliance with the License.
@@ -256,6 +257,9 @@ if (TBB_ENABLE_IPO AND BUILD_SHARED_LIBS AND NOT ANDROID_PLATFORM AND NOT TBB_SA
256257
cmake_policy(SET CMP0069 NEW)
257258
include(CheckIPOSupported)
258259
check_ipo_supported(RESULT TBB_IPO_PROPERTY)
260+
if (NOT TBB_IPO_PROPERTY)
261+
message(WARNING "IPO disabled: not supported by this compiler.")
262+
endif()
259263
else()
260264
set(TBB_IPO_FLAGS TRUE)
261265
endif()

0 commit comments

Comments
 (0)