Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Correct arduino compile command creation with unstripped parameters #103

Merged

Conversation

@wgrs33
Copy link
Contributor

@wgrs33 wgrs33 commented Apr 17, 2023

When configuring a project by cmake, some flags.make can contain unstripped newlines and extra spaces. This fix corrects it. Fix tested of Ubuntu 22.04.

Before:

CXX_FLAGS = -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega168 -DF_CPU=16000000L -DARDUINO=108019+dfsg1-1 
"-DARDUINO_AVR_NANO "

After:

CXX_FLAGS = -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega168 -DF_CPU=16000000L -DARDUINO=108019+dfsg1-1 -DARDUINO_AVR_NANO

Copy link
Member

I don't know if you missed the notice on the project's readme, but this is not maintained anymore, for over 3 years actually 😅
Regardless, your changes are small enough and LGTM, so I'll merge, but after that, I'll archive the repo to remove confusion.

Thanks for the support, the effort, and mostly - For understanding.

@MrPointer MrPointer merged commit 1f358b5 into arduino-cmake:master Apr 17, 2023
@wgrs33 wgrs33 deleted the bugfix/correct-makefile-creation branch April 18, 2023 23:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer

@MrPointer MrPointer MrPointer approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /