Skip to content

Commit

Permalink
attempt to make gcc happy
Browse files Browse the repository at this point in the history
  • Loading branch information
thorstink committed Jan 11, 2025
1 parent 5bddcb3 commit 631928e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: "build linux"
run: |
sudo apt-get update
sudo apt-get install -y libglfw3-dev libsdl2-dev gcc-multilib g++-multilib libfreetype6-dev libvulkan-dev
sudo apt-get install --no-install-recommends -y libglfw3-dev libsdl2-dev gcc-multilib g++-multilib libfreetype6-dev libvulkan-dev
git submodule update --init --recursive
mkdir build
cd build
Expand All @@ -47,7 +47,7 @@ jobs:
- name: "tests with ASAN"
run: |
sudo apt-get update
sudo apt-get install -y libglfw3-dev libsdl2-dev gcc-multilib g++-multilib libfreetype6-dev libvulkan-dev
sudo apt-get install --no-install-recommends -y libglfw3-dev libsdl2-dev gcc-multilib g++-multilib libfreetype6-dev libvulkan-dev
git submodule update --init --recursive
mkdir build
cd build
Expand Down
9 changes: 9 additions & 0 deletions symmetri/gui/load_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,16 @@ void loadPetriNet(const std::filesystem::path& file) {

m.colors = symmetri::Token::getColors();

// For GCC, we copy the priority table because of some weird GCC13/14 bug...
#if defined(__GNUC__)
#ifndef __clang__
m.net.priority.insert(m.net.priority.end(), new_net.priority.begin(),
new_net.priority.end());
#endif
#else
append(std::move(new_net.priority), m.net.priority);
#endif

append(std::move(new_net.transition), m.net.transition);
append(std::move(new_net.place), m.net.place);
append(std::move(new_net.output_n), m.net.output_n);
Expand Down

0 comments on commit 631928e

Please sign in to comment.