Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .circleci/ccache.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
debug = true
debug_level = 1
12 changes: 9 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,11 @@ commands:
- run:
name: "Ccache stats and configuration"
command: |
ls ~/cache/sysroot/lib/wasm32-emscripten || echo "no build"
ls -l ~/cache/sysroot/lib/wasm32-emscripten || echo "no build"
ls -l ~/cache/sysroot/include/emscripten/heap.h
cat ~/cache/sysroot/lib/wasm32-emscripten/crtbegin.o.ccache-log
date
cat ~/cache/build/libcompiler_rt/absvdi2.o.ccache-log
ccache -s
ccache --print-stats
ccache -p
Expand Down Expand Up @@ -574,8 +576,6 @@ jobs:
EMCC_CORES: 16
EMCC_USE_NINJA: 1
EM_COMPILER_WRAPPER: "ccache"
CCACHE_DEBUG: 1
CCACHE_DEBUGLEVEL: 1
steps:
- checkout
- run:
Expand Down Expand Up @@ -611,6 +611,12 @@ jobs:
- restore_cache:
name: "Restore Ccache cache"
key: clang-{{ checksum "~/emsdk/clang_version.txt" }}
- run:
name: Configure ccache
command: |
mkdir -p ~/.ccache
cat .circleci/ccache.conf
cp .circleci/ccache.conf ~/.ccache
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could just do stuff like echo "debug = true\n" >> ~/.ccache/ccache.conf instead of checking in a new file, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I figured if we have several lines it would be better to have a file than a bunch of echos though?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or a heredoc style echo could be good, but I didn't know if that would compose well with YAML.

- build-libs
- run:
name: Clean build directory
Expand Down