This is an automated email from the ASF dual-hosted git repository.

jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new b6890df  Fix a build on macOS
b6890df is described below

commit b6890df58da3a8e284f2c27488f439b4d6e98259
Author: YAMAMOTO Takashi <[email protected]>
AuthorDate: Wed Jan 29 14:00:15 2020 +0900

    Fix a build on macOS
    
    On some platforms like macOS, we can't create an empty archive.
---
 platform/dummy/Make.defs | 5 +++++
 platform/dummy/dummy.c   | 0
 2 files changed, 5 insertions(+)

diff --git a/platform/dummy/Make.defs b/platform/dummy/Make.defs
index 42a1dbe..2aceb71 100644
--- a/platform/dummy/Make.defs
+++ b/platform/dummy/Make.defs
@@ -32,3 +32,8 @@
 # POSSIBILITY OF SUCH DAMAGE.
 #
 ############################################################################
+
+# Add dummy.c to ensure that we have at least one object.
+# On some platforms like macOS, we can't create an empty archive.
+
+CSRCS += dummy.c
diff --git a/platform/dummy/dummy.c b/platform/dummy/dummy.c
new file mode 100644
index 0000000..e69de29

Reply via email to