You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/02/21 03:37:16 UTC
[GitHub] [incubator-nuttx-apps] yamt commented on a change in pull request
#81: do ARLOCK things a bit differently
yamt commented on a change in pull request #81: do ARLOCK things a bit differently
URL: https://github.com/apache/incubator-nuttx-apps/pull/81#discussion_r382382051
##########
File path: Make.defs
##########
@@ -99,9 +99,13 @@ define REGISTER
endef
endif
-define ARLOCK
- $(Q) flock .arlock $(call ARCHIVE, $1, $(2))
-endef
+# Workaround for concurrent execution to the same library (libapps)
+ifeq ($(CONFIG_HOST_MACOS),y)
+# macOS doesn't have flock. Use shlock instead.
+AR := $(APPDIR)/tools/flock.sh $(APPDIR)/.arlock $(AR)
+else
+AR := flock $(APPDIR)/.arlock $(AR)
Review comment:
AR doesn't have @. ARCHIVE does.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services