Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration goes wrong when LOCAL_SRCS contains generated files #634

Open
buzden opened this issue May 12, 2020 · 0 comments
Open

Configuration goes wrong when LOCAL_SRCS contains generated files #634

buzden opened this issue May 12, 2020 · 0 comments

Comments

@buzden
Copy link

buzden commented May 12, 2020

ARDUINO_LIBS variable is calculated during configuration and it uses LOCAL_SRCS variable for this:

ifndef ARDUINO_LIBS

But when LOCAL_SRCS contains files that are to be generated by some target in the user's makefile, we get sed piss off during configuration:

...
- [MANUAL]             NO_CORE_MAIN_CPP set so core library will not include main.cpp
- [ASSUMED]            MONITOR_BAUDRATE = 9600 
sed: can't read Blink.c: No such file or directory
sed: can't read Blink.c: No such file or directory
sed: can't read Blink.c: No such file or directory
sed: can't read Blink.c: No such file or directory
sed: can't read Blink.c: No such file or directory
sed: can't read Blink.c: No such file or directory
sed: can't read Blink.c: No such file or directory
sed: can't read Blink.c: No such file or directory
sed: can't read Blink.c: No such file or directory
sed: can't read Blink.c: No such file or directory
sed: can't read Blink.c: No such file or directory
sed: can't read Blink.c: No such file or directory
sed: can't read Blink.c: No such file or directory
sed: can't read Blink.c: No such file or directory
sed: can't read Blink.c: No such file or directory
sed: can't read Blink.c: No such file or directory
- [DEFAULT]            OPTIMIZATION_LEVEL = s 
...

Blink.c here is those C-file that was added manually to LOCAL_C_SRCS and is generated by user-defined target.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant