Skip to content

Commit

Permalink
Added PLATFORM detect for FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
ravi688 committed Nov 23, 2024
1 parent 32e940b commit 1d21023
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions toolchain/shader_compiler/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ ifneq (,$(findstring Linux,$(PLATFORM_DETECT)))
PLATFORM := Linux
endif

# FreeBSD
ifneq (,$(findstring FreeBSD,$(PLATFORM_DETECT)))
PLATFORM := FreeBSD
endif

#-------------------------------------------
# Project Configuration
#-------------------------------------------
Expand Down Expand Up @@ -334,7 +339,7 @@ DELETE_UPACKED_OBJECTS:
ifeq (Windows,$(PLATFORM))
$(RM) $(subst /,\ $(wildcard $(UNPACKED_OBJECTS_DIR)/*.o))
endif
ifeq (Linux,$(PLATFORM))
ifneq (,$(findstring $(PLATFORM),Linux-FreeBSD))
$(RM) $(wildcard $(UNPACKED_OBJECTS_DIR)/*.o)
endif
$(RM_DIR) $(UNPACKED_OBJECTS_DIR)
Expand Down Expand Up @@ -366,7 +371,7 @@ ifeq (Windows,$(PLATFORM))
$(RM) $(subst /,\, $(wildcard $(UNPACKED_OBJECTS_DIR)/*.o))
$(RM_DIR) $(subst /,\, $(UNPACKED_OBJECTS_DIR))
endif
ifeq (Linux,$(PLATFORM))
ifneq (,$(findstring $(PLATFORM),Linux-FreeBSD))
$(RM) $(OBJECTS)
$(RM) $(__EXECUTABLE_NAME)
$(RM) $(TARGET_STATIC_LIB)
Expand Down

0 comments on commit 1d21023

Please sign in to comment.