File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -453,6 +453,9 @@ jobs:
453
453
strategy :
454
454
matrix :
455
455
os : ['macos-13', 'macos-14']
456
+ include :
457
+ - os : macos-14
458
+ static_hwloc : ' -DUMF_LINK_HWLOC_STATICALLY=ON'
456
459
env :
457
460
BUILD_TYPE : " Release"
458
461
runs-on : ${{matrix.os}}
@@ -471,8 +474,12 @@ jobs:
471
474
echo "$PATH" >> $GITHUB_PATH
472
475
python3 -m pip install -r third_party/requirements.txt
473
476
477
+ - name : Install dependencies
478
+ run : brew install jemalloc tbb automake libtool
479
+
474
480
- name : Install hwloc
475
- run : brew install hwloc tbb automake
481
+ if : ${{ !matrix.static_hwloc }}
482
+ run : brew install hwloc
476
483
477
484
- name : Get UMF version
478
485
run : |
@@ -492,6 +499,7 @@ jobs:
492
499
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON
493
500
-DUMF_BUILD_SHARED_LIBRARY=ON
494
501
-DUMF_TESTS_FAIL_ON_SKIP=ON
502
+ ${{matrix.static_hwloc}}
495
503
496
504
- name : Build UMF
497
505
run : cmake --build ${{env.BUILD_DIR}} -j $(sysctl -n hw.logicalcpu)
Original file line number Diff line number Diff line change 1
- # Copyright (C) 2023-2024 Intel Corporation
1
+ # Copyright (C) 2023-2025 Intel Corporation
2
2
# Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
3
3
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4
4
@@ -182,6 +182,18 @@ add_dependencies(umf coarse)
182
182
183
183
if (UMF_LINK_HWLOC_STATICALLY )
184
184
add_dependencies (umf ${UMF_HWLOC_NAME} )
185
+ # On Darwin, link with the IOKit and Foundation frameworks, if they are
186
+ # available in the system. This is to comply with hwloc which links these,
187
+ # if available. There is no option to disable these frameworks on Darwin
188
+ # hwloc builds.
189
+ if (MACOSX )
190
+ find_library (IOKIT_LIBRARY IOKit )
191
+ find_library (FOUNDATION_LIBRARY Foundation )
192
+ if (IOKIT_LIBRARY OR FOUNDATION_LIBRARY )
193
+ target_link_libraries (umf PRIVATE ${IOKIT_LIBRARY}
194
+ ${FOUNDATION_LIBRARY} )
195
+ endif ()
196
+ endif ()
185
197
endif ()
186
198
187
199
if (NOT WINDOWS AND UMF_POOL_JEMALLOC_ENABLED )
You can’t perform that action at this time.
0 commit comments