mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
make: only build MacOS-specific tool on MacOS
The comment says as much, the tool in question even has `macosx` in its name [1], and it does not build for other non-Linux-POSIX systems such as FreeBSD. [1]: https://github.com/tzvetkoff/setsid-macosx
This commit is contained in:
parent
6e8006240b
commit
44cf4a9f8d
@ -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