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

CMake build fixes and Actions workflow #59

Merged
merged 6 commits into from
Jul 10, 2022
Merged

Conversation

mcspr
Copy link
Collaborator

@mcspr mcspr commented Jul 4, 2022

fix #55 by moving build flags into main and lwip builder .cmake files
also testing this using github actions running on prs and main branch pushes

mcspr added 2 commits July 4, 2022 21:25
Allows CMakeLists.txt modifications that did not work
Build using CMake, fetches latest ESP8266 Core to build against
@mcspr
Copy link
Collaborator Author

mcspr commented Jul 4, 2022

@d-a-v d-a-v merged commit 03dcc3e into d-a-v:master Jul 10, 2022
@mcspr
Copy link
Collaborator Author

mcspr commented Jul 11, 2022

:oops:
just noticed glue's git-describe never happens this way (and cmake does not check for unset variables...). duplicated compile options also look strange, I suppose it should just do add_compile_options(...) with both -m... and avoid this extra var.

@mcspr mcspr deleted the test/cmake-flags branch July 11, 2022 20:29
@mcspr mcspr mentioned this pull request Jul 13, 2022
mcspr added a commit that referenced this pull request Jul 13, 2022
amends #59 

- cmake defaults to empty variables. if repo is some place else, git
simply errors out and the resulting description var will also be empty
(like it is currently happening in actions .yml)
- toolchain .cmake is 'sourced' multiple times when running cmake for
the first time. Instead of using list var, just use the built-in global flag
setter (which also takes care of flag unique-ness, as well as caching)
- -std=... flags were missing
- files with platform-specific things are suffixed with *-esp8266.cmake
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

Successfully merging this pull request may close these issues.

cmake: toolchain file should not contain project build flags
2 participants