diff --git a/src/test/run-make-fulldeps/emit-stack-sizes/Makefile b/src/test/run-make-fulldeps/emit-stack-sizes/Makefile index 6ed9b6c4314c6..c2f643ce24c41 100644 --- a/src/test/run-make-fulldeps/emit-stack-sizes/Makefile +++ b/src/test/run-make-fulldeps/emit-stack-sizes/Makefile @@ -1,7 +1,13 @@ -include ../tools.mk +# This feature only works when the output object format is ELF so we ignore +# macOS and Windows ifdef IS_WINDOWS -# Do nothing on MSVC. +# Do nothing on Windows. +all: + exit 0 +else ifneq (,$(filter $(TARGET),i686-apple-darwin x86_64-apple-darwin)) +# Do nothing on macOS. all: exit 0 else