8336498: [macos] [build]: install-file macro may run into permission denied error

Reviewed-by: clanger, erikj
This commit is contained in:
Lutz Schmidt 2024-08-21 08:23:31 +00:00
parent e88a3b0574
commit 715fa8f9fe

View File

@ -136,6 +136,7 @@ ifeq ($(call isTargetOs, macosx), true)
$(CP) -fRP '$(call DecodeSpace, $<)' '$(call DecodeSpace, $@)'; \
fi
if [ -n "`$(XATTR) -ls '$(call DecodeSpace, $@)'`" ]; then \
$(CHMOD) u+w '$(call DecodeSpace, $@)'; \
$(XATTR) -cs '$(call DecodeSpace, $@)'; \
fi
endef