@@ -581,23 +581,22 @@ if(CLR_CMAKE_TARGET_IOS)
581
581
# Manually set results from check_c_source_runs() since it's not possible to actually run it during CMake configure checking
582
582
unset (HAVE_SHM_OPEN_THAT_WORKS_WELL_ENOUGH_WITH_MMAP )
583
583
unset (HAVE_ALIGNED_ALLOC ) # only exists on iOS 13+
584
- unset (HAVE_CLOCK_MONOTONIC ) # only exists on iOS 10+
585
- unset (HAVE_CLOCK_REALTIME ) # only exists on iOS 10+
584
+ set (HAVE_CLOCK_MONOTONIC 1 )
585
+ set (HAVE_CLOCK_REALTIME 1 )
586
586
unset (HAVE_FORK ) # exists but blocked by kernel
587
587
elseif (CLR_CMAKE_TARGET_MACCATALYST )
588
588
# Manually set results from check_c_source_runs() since it's not possible to actually run it during CMake configure checking
589
- # TODO: test to see if these all actually hold true on Mac Catalyst
590
589
unset (HAVE_SHM_OPEN_THAT_WORKS_WELL_ENOUGH_WITH_MMAP )
591
590
unset (HAVE_ALIGNED_ALLOC ) # only exists on iOS 13+
592
- unset (HAVE_CLOCK_MONOTONIC ) # only exists on iOS 10+
593
- unset (HAVE_CLOCK_REALTIME ) # only exists on iOS 10+
591
+ set (HAVE_CLOCK_MONOTONIC 1 )
592
+ set (HAVE_CLOCK_REALTIME 1 )
594
593
unset (HAVE_FORK ) # exists but blocked by kernel
595
594
elseif (CLR_CMAKE_TARGET_TVOS )
596
595
# Manually set results from check_c_source_runs() since it's not possible to actually run it during CMake configure checking
597
596
unset (HAVE_SHM_OPEN_THAT_WORKS_WELL_ENOUGH_WITH_MMAP )
598
597
unset (HAVE_ALIGNED_ALLOC ) # only exists on iOS 13+
599
- unset (HAVE_CLOCK_MONOTONIC ) # only exists on iOS 10+
600
- unset (HAVE_CLOCK_REALTIME ) # only exists on iOS 10+
598
+ set (HAVE_CLOCK_MONOTONIC 1 )
599
+ set (HAVE_CLOCK_REALTIME 1 )
601
600
unset (HAVE_FORK ) # exists but blocked by kernel
602
601
elseif (CLR_CMAKE_TARGET_ANDROID )
603
602
# Manually set results from check_c_source_runs() since it's not possible to actually run it during CMake configure checking
@@ -608,14 +607,10 @@ elseif(CLR_CMAKE_TARGET_ANDROID)
608
607
elseif (CLR_CMAKE_TARGET_BROWSER OR CLR_CMAKE_TARGET_WASI )
609
608
set (HAVE_FORK 0 )
610
609
else ()
611
- if (CLR_CMAKE_TARGET_OSX )
612
- unset (HAVE_ALIGNED_ALLOC ) # only exists on OSX 10.15+
613
- else ()
614
- check_symbol_exists (
615
- aligned_alloc
616
- stdlib.h
617
- HAVE_ALIGNED_ALLOC )
618
- endif ()
610
+ check_symbol_exists (
611
+ aligned_alloc
612
+ stdlib.h
613
+ HAVE_ALIGNED_ALLOC )
619
614
620
615
check_c_source_runs (
621
616
"
0 commit comments