Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions c_check
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ config="$2"
compiler_name="$3"
shift 3
flags="$*"
is_ios=false

# First, we need to know the target OS and compiler name
{
Expand Down Expand Up @@ -78,6 +79,7 @@ case "$data" in *OS_CYGWIN_NT*) os=CYGWIN_NT ;; esac
case "$data" in *OS_INTERIX*) os=Interix ;; esac
case "$data" in *OS_ANDROID*) os=Android ;; esac
case "$data" in *OS_HAIKU*) os=Haiku ;; esac
case "$data" in *OS_IOS*) is_ios=true ;; esac

case "$data" in
*ARCH_X86_64*) architecture=x86_64 ;;
Expand Down Expand Up @@ -410,6 +412,8 @@ fi
[ "$os" = "Android" ] && [ "$hostos" = "Linux" ] && [ -n "$TERMUX_APP_PID" ] \
&& cross=0

[ "$is_ios" = true ] && cross=1

[ "$USE_OPENMP" != 1 ] && openmp=''

linker_L=""
Expand Down
3 changes: 3 additions & 0 deletions ctest.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,6 @@ ARCH_RISCV64
OS_WINDOWS
#endif

#if defined(TARGET_OS_IPHONE)
OS_IOS
#endif
Loading