Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
leleliu008 authored and trufae committed Jul 8, 2024
1 parent 5719f5f commit 9495e4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ SOURCES+=backend/*.c

TARGET_TRIPLE := $(shell $(CC) -dumpmachine 2>/dev/null)

ifneq ($(findstring -darwin,$(TARGET_MACHINE)),)
ifneq ($(findstring -darwin,$(TARGET_TRIPLE)),)
TARGET_OS_TYPE=Darwin
else ifneq ($(findstring -linux,$(TARGET_MACHINE)),)
else ifneq ($(findstring -linux,$(TARGET_TRIPLE)),)
TARGET_OS_TYPE=Linux
else ifneq ($(findstring -android,$(TARGET_MACHINE)),)
else ifneq ($(findstring -android,$(TARGET_TRIPLE)),)
TARGET_OS_TYPE=Linux
else
TARGET_OS_TYPE=$(shell uname)
Expand Down

0 comments on commit 9495e4e

Please sign in to comment.