mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +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,12 +649,14 @@ endef
|
|||||||
|
|
||||||
# Check if setsid command is available on the system for debug target
|
# 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
|
# This is not the case on MacOSX, so it must be built on the fly
|
||||||
ifneq (,$(filter debug, $(MAKECMDGOALS)))
|
ifeq ($(OS),Darwin)
|
||||||
ifneq (0,$(shell which setsid 2>&1 > /dev/null ; echo $$?))
|
ifneq (,$(filter debug, $(MAKECMDGOALS)))
|
||||||
|
ifneq (0,$(shell command -v setsid 2>&1 > /dev/null ; echo $$?))
|
||||||
SETSID = $(RIOTTOOLS)/setsid/setsid
|
SETSID = $(RIOTTOOLS)/setsid/setsid
|
||||||
$(call target-export-variables,debug,$(SETSID))
|
$(call target-export-variables,debug,$(SETSID))
|
||||||
DEBUGDEPS += $(SETSID)
|
DEBUGDEPS += $(SETSID)
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
..compiler-check:
|
..compiler-check:
|
||||||
|
Loading…
Reference in New Issue
Block a user