Skip to content
Draft
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
63 changes: 30 additions & 33 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ commands:
./emsdk install tot
./emsdk activate tot
# Write the version of clang into a file for use in the ccache key
./upstream/bin/clang --version > clang_version.txt
echo "test21" > clang_version.txt
echo "clang version:"
cat ~/emsdk/clang_version.txt
# Remove the emsdk version of emscripten to save space in the
Expand Down Expand Up @@ -179,36 +179,38 @@ commands:
- run:
name: Ccache stats and configuration
command: |
ccache --version
ccache -s
ccache --print-stats
ccache -p
- run:
name: embuilder build ALL
command: |
./embuilder build ALL
./test/runner test_hello_world
- run:
name: embuilder (LTO)
command: |
./embuilder build MINIMAL --lto
./test/runner test_hello_world
- run:
name: embuilder (WASM64)
command: |
./embuilder build MINIMAL --wasm64
- run:
name: embuilder (PIC)
command: |
./embuilder build MINIMAL_PIC --pic
./test/runner test_hello_world
- run:
name: embuilder (PIC+LTO)
command: |
./embuilder build MINIMAL --pic --lto
./embuilder build crtbegin
./test/runner test_hello_world
# - run:
# name: embuilder (LTO)
# command: |
# ./embuilder build MINIMAL --lto
# ./test/runner test_hello_world
# - run:
# name: embuilder (WASM64)
# command: |
# ./embuilder build MINIMAL --wasm64
# - run:
# name: embuilder (PIC)
# command: |
# ./embuilder build MINIMAL_PIC --pic
# ./test/runner test_hello_world
# - run:
# name: embuilder (PIC+LTO)
# command: |
# ./embuilder build MINIMAL --pic --lto
# ./test/runner test_hello_world
- run:
name: "Ccache stats and configuration"
command: |
ls ~/ccache-debug || echo "no ccache-debug"
ls ~/cache/sysroot/lib/wasm32-emscripten || echo "no build"
cat ~/cache/sysroot/lib/wasm32-emscripten/crtbegin.o.ccache-log
date
Expand All @@ -230,18 +232,12 @@ commands:
- vms/
- wasi-sdk/
- .jsvu/
- when:
# Only the main branch will store its cache results, and only the non-main branches
# will use cached results. This prevents untrusted PRs from polluting caches used
# by other branches.
condition:
equal: [ "main", << pipeline.git.branch >> ]
steps:
- save_cache:
name: "Save Ccache cache"
paths:
- ~/.ccache
key: clang-{{ checksum "~/emsdk/clang_version.txt" }}

- save_cache:
name: "Save Ccache cache"
paths:
- ~/.ccache
key: clang-{{ checksum "~/emsdk/clang_version.txt" }}

prepare-for-tests:
description: "Setup emscripten tests"
Expand Down Expand Up @@ -577,6 +573,7 @@ jobs:
CCACHE_DEBUG: 1
CCACHE_DEBUGLEVEL: 1
steps:
- run: echo "${CIRCLE_PR_NUMBER} ${CIRCLE_PULL_REQUEST} ${CIRCLE_REPOSITORY_URL} ${CIRCLE_BRANCH} << pipeline.project.git_url >> << pipeline.git.branch >>"
- checkout
- run:
name: get wasmer
Expand Down
2 changes: 1 addition & 1 deletion tools/system_libs.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def get_top_level_ninja_file():


def run_ninja(build_dir):
cmd = ['ninja', '-C', build_dir, f'-j{utils.get_num_cores()}']
cmd = ['ninja', '-v', '-C', build_dir, f'-j{utils.get_num_cores()}']
if shared.PRINT_SUBPROCS:
cmd.append('-v')
shared.check_call(cmd, env=clean_env())
Expand Down