mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #14644 from miri64/make/fix/macosx-debug
make: only build MacOS-specific tool on MacOS
This commit is contained in:
commit
1aa8fb1715
@ -649,11 +649,13 @@ endef
|
||||
|
||||
# Check if setsid command is available on the system for debug target
|
||||
# This is not the case on MacOSX, so it must be built on the fly
|
||||
ifneq (,$(filter debug, $(MAKECMDGOALS)))
|
||||
ifneq (0,$(shell which setsid 2>&1 > /dev/null ; echo $$?))
|
||||
SETSID = $(RIOTTOOLS)/setsid/setsid
|
||||
$(call target-export-variables,debug,$(SETSID))
|
||||
DEBUGDEPS += $(SETSID)
|
||||
ifeq ($(OS),Darwin)
|
||||
ifneq (,$(filter debug, $(MAKECMDGOALS)))
|
||||
ifneq (0,$(shell command -v setsid 2>&1 > /dev/null ; echo $$?))
|
||||
SETSID = $(RIOTTOOLS)/setsid/setsid
|
||||
$(call target-export-variables,debug,$(SETSID))
|
||||
DEBUGDEPS += $(SETSID)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user