Skip to content

Commit

Permalink
fix compatible issue with gcc-9
Browse files Browse the repository at this point in the history
  • Loading branch information
oathdruid committed Oct 31, 2024
1 parent 654e359 commit 143c90c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,27 @@ jobs:
path: bazel-disk
key: bazel-disk-basic-${{matrix.compiler.name}}-${{matrix.mode.name}}-${{matrix.std.name}}-${{matrix.stdlib.name}}-${{matrix.feature.name}}-${{github.sha}}

compatible:
strategy:
fail-fast: false
matrix:
compiler: [{name: gcc-9, flag: --action_env=CC=gcc-9}]
runs-on: ubuntu-20.04
name: compatible-${{matrix.compiler.name}}
steps:
- uses: actions/checkout@v4
- uses: actions/cache/restore@v4
with:
path: bazel-disk
key: bazel-disk-compatible-${{matrix.compiler.name}}-${{github.sha}}
restore-keys: bazel-disk-compatible-${{matrix.compiler.name}}
- run: bazel test --disk_cache=bazel-disk --verbose_failures --test_output=errors ${{matrix.compiler.flag}} test/...
- uses: actions/cache/save@v4
if: always()
with:
path: bazel-disk
key: bazel-disk-basic-${{matrix.compiler.name}}-${{github.sha}}

arenastring:
strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion src/babylon/concurrent/garbage_collector.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class GarbageCollector {
private:
class ReclaimTask {
public:
ReclaimTask() noexcept = default;
ReclaimTask() = default;
ReclaimTask(ReclaimTask&&) = default;
ReclaimTask(const ReclaimTask&) = delete;
ReclaimTask& operator=(ReclaimTask&&) = default;
Expand Down
2 changes: 1 addition & 1 deletion src/babylon/executor.h
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ struct AlwaysUseNewThreadExecutor : public Executor {
class ThreadPoolExecutor : public Executor {
public:
// Use **this** in worker thread, so no copy nor move
ThreadPoolExecutor() noexcept = default;
ThreadPoolExecutor() = default;
ThreadPoolExecutor(ThreadPoolExecutor&&) noexcept = delete;
ThreadPoolExecutor(const ThreadPoolExecutor&) noexcept = delete;
ThreadPoolExecutor& operator=(ThreadPoolExecutor&&) noexcept = delete;
Expand Down

0 comments on commit 143c90c

Please sign in to comment.