File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4242 if : matrix.target == 'x86_64-unknown-linux-musl' && startsWith(matrix.os, 'ubuntu')
4343 run : |
4444 sudo apt-get update
45- sudo apt-get install -y musl-tools musl-dev
46-
47- - name : Setup C++ for MUSL
48- if : matrix.target == 'x86_64-unknown-linux-musl'
49- run : |
50- # Install build-essential for libstdc++
51- sudo apt-get install -y build-essential
52- # Create musl-g++ wrapper with proper C++ support
53- GCC_VERSION=$(gcc -dumpversion | cut -d. -f1)
54- sudo tee /usr/local/bin/musl-g++ > /dev/null << 'WRAPPER'
55- #!/bin/bash
56- exec musl-gcc -x c++ \
57- -idirafter /usr/include/c++/GCC_VERSION_PLACEHOLDER \
58- -idirafter /usr/include/x86_64-linux-gnu/c++/GCC_VERSION_PLACEHOLDER \
59- -idirafter /usr/include/c++/GCC_VERSION_PLACEHOLDER/backward \
60- "$@"
61- WRAPPER
62- # Replace placeholder with actual GCC version
63- sudo sed -i "s/GCC_VERSION_PLACEHOLDER/$GCC_VERSION/g" /usr/local/bin/musl-g++
64- # Make it executable
65- sudo chmod +x /usr/local/bin/musl-g++
66- echo "musl-g++ created successfully"
67- cat /usr/local/bin/musl-g++
45+ sudo apt-get install -y clang
46+ sudo ln -s /usr/bin/g++ /usr/bin/musl-g++
6847
6948 - name : Configure MUSL environment
7049 if : matrix.target == 'x86_64-unknown-linux-musl'
You can’t perform that action at this time.
0 commit comments