Skip to content

use ccache for emscripten builds #71422

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

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

nornagon
Copy link
Contributor

@nornagon nornagon commented Feb 2, 2024

Summary

None

Purpose of change

Should hopefully speed up the emscripten build in most cases

Describe the solution

Cargo culted from the matrix build

Describe alternatives you've considered

Testing

Additional context

@github-actions github-actions bot added Code: Build Issues regarding different builds and build environments Code: Tooling Tooling that is not part of the main game but is part of the repo. astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Feb 2, 2024
@ZhilkinSerg ZhilkinSerg merged commit 03a693c into CleverRaven:master Feb 2, 2024
@akrieger
Copy link
Member

akrieger commented Feb 3, 2024

Doesn't seem like it worked, the last few uploads from master had a ccache size of all of 8kb.

@akrieger
Copy link
Member

akrieger commented Feb 3, 2024

emcc -Isrc -isystem src/third-party -DRELEASE -DGIT_VERSION -DTILES -DLOCALIZE -Os -Wodr -Werror -Wall -Wextra -Wformat-signedness -Wlogical-op -Wmissing-declarations -Wmissing-noreturn -Wnon-virtual-dtor -Wold-style-cast -Woverloaded-virtual -Wpedantic -Wsuggest-override -Wunused-macros -Wzero-as-null-pointer-constant -Wno-unknown-warning-option -Wno-dangling-reference -Wno-c++20-compat -Wno-gnu-zero-variadic-macro-arguments -Wredundant-decls    -fsigned-char  -std=c++17 -sUSE_SDL=2 -sUSE_SDL_IMAGE=2 -sUSE_SDL_TTF=2 -sSDL2_IMAGE_FORMATS=['png'] -MMD -MP -Winvalid-pch -include pch/main-pch.hpp -c src/achievement.cpp -o obj/tiles/achievement.o

make actions still used emcc directly.

@nornagon
Copy link
Contributor Author

nornagon commented Feb 3, 2024

yeah i saw that, see #71439 for some ongoing diagnosis

@nornagon nornagon deleted the ccache-emscripten branch February 3, 2024 00:56
nornagon added a commit to nornagon/Cataclysm-DDA that referenced this pull request Feb 5, 2024
ZhilkinSerg pushed a commit that referenced this pull request Feb 5, 2024
nornagon added a commit to nornagon/Cataclysm-DDA that referenced this pull request Feb 7, 2024
Maleclypse pushed a commit that referenced this pull request Feb 18, 2024
* wip

* fix

* fix

* fix?

* what if we don't try to invoke ccache directly?

* more debugging

* try, try again

* wip

* ???

* ????

* --verbose not supported?

* more fix

* maybe not having ccache in the activate line means it gets deactivated..?

* Reapply "use ccache for emscripten builds (#71422)" (#71524)

This reverts commit ef75f20.

* explicitly invoke ccache i guess

* fix makefile

* maybe CCACHE_SLOPPINESS is causing issues?

* emcc ccache seems to have a problem with EM_CONFIG not being set i think

* use CCACHEBIN for sloppiness

* add comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions Code: Build Issues regarding different builds and build environments Code: Tooling Tooling that is not part of the main game but is part of the repo. json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants