Skip to content

Commit 03b0695

Browse files
committed
Install g++ cross packages so cc_precompiler picks up gnu targets
1 parent 224d53d commit 03b0695

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/precompile.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,14 @@ jobs:
5959
done
6060
6161
- name: Install GNU cross-compilers
62+
# cc_precompiler requires BOTH ${prefix}gcc and ${prefix}g++ for a
63+
# target to be considered available, so we install the g++ packages
64+
# alongside the gcc packages even though our NIF is pure C.
6265
run: |
6366
sudo apt-get update
64-
sudo apt-get install -y gcc make curl tar \
65-
gcc-aarch64-linux-gnu \
66-
gcc-arm-linux-gnueabihf
67+
sudo apt-get install -y gcc g++ make curl tar \
68+
gcc-aarch64-linux-gnu g++-aarch64-linux-gnu \
69+
gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
6770
6871
- run: mix deps.get
6972

0 commit comments

Comments
 (0)