I'm using muon to build a project that depends on quickjs-ng. I found a strange issue with 0.4.0 and automatic reconfiguration:
Steps to reproduce:
git clone https://github.com/Gottox/muon-test.git
cd muon-test
muon setup build
samu -C build
# Reports:
# ../main.c:1:10: fatal error: quickjs.h: No such file or directory
# 1 | #include <quickjs.h>
# |
echo "" >> meson.build #trigger reconfiguration
samu -C build
# Works
Expected Result:
Consistent failing/success of samu
Failing command:
samu: job failed: cc -g -O0 -Wpedantic -Wextra -Wall -fdiagnostics-color=always -I . -I .. -pthread -MD -MQ muon-test.p/main.c.o -MF muon-test.p/main.c.o.d -o muon-test.p/main.c.o -c ../main.c
Passing command:
[1/2] cc -g -O0 -Wpedantic -Wextra -Wall -fdiagnostics-color=always -I . -I .. -I subprojects/quickjs-0.9.0/libqjs.a.p -pthread -MD -MQ muon-test.p/main.c.o -MF muon-test.p/main.c.o.d -o muon-test.p/main.c.o -c ../main.c
It is originally missing -I subprojects/quickjs-0.9.0/libqjs.a.p
... hmm, fixed in commit 75fb1863668d6bd279ab6e419b1b149a5a8ca3c4 but linkification appears to not happen. ~lattis -- you need to use ":" after "Fixes" I think.
Sorry, I forgot to mark this as resolved!