This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 16bca8b56 examples/hello_nim: Fix nimcache location
16bca8b56 is described below
commit 16bca8b5689e15f370bfd44779d936b7f1f69118
Author: Lee Lup Yuen <[email protected]>
AuthorDate: Tue Jan 2 04:25:48 2024 +0000
examples/hello_nim: Fix nimcache location
The Nim Example App fails to build because the `.nimcache` is located 2
folders up. This PR fixes the location of `.nimcache` in the `Makefile` of the
Nim Example App.
`.nimcache` is explained in this article:
https://lupyuen.github.io/articles/nim#inside-nim-on-nuttx
---
examples/hello_nim/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/examples/hello_nim/Makefile b/examples/hello_nim/Makefile
index 52d306d96..67e9bf9c9 100644
--- a/examples/hello_nim/Makefile
+++ b/examples/hello_nim/Makefile
@@ -30,8 +30,8 @@ MODULE = $(CONFIG_EXAMPLES_HELLO_NIM)
# Hello, World! Example
NIMPATH = $(shell choosenim show path)
-CFLAGS += -I $(NIMPATH)/lib -I ./.nimcache
-CSRCS += $(wildcard .nimcache/*.c)
+CFLAGS += -I $(NIMPATH)/lib -I ../../.nimcache
+CSRCS += $(wildcard ../../.nimcache/*.c)
MAINSRC = hello_nim_main.c