File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,14 +51,16 @@ jobs:
5151 sudo apt-get install -y build-essential
5252 # Create musl-g++ wrapper with proper C++ support
5353 GCC_VERSION=$(gcc -dumpversion | cut -d. -f1)
54- cat << WRAPPER | sudo tee /usr/local/bin/musl-g++
55- # !/bin/bash
56- exec musl-gcc -x c++ \\
57- -idirafter /usr/include/c++/$GCC_VERSION \\
58- -idirafter /usr/include/x86_64-linux-gnu/c++/$GCC_VERSION \\
59- -idirafter /usr/include/c++/$GCC_VERSION/backward \\
60- " \$ @"
61- WRAPPER
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++
6264 # Make it executable
6365 sudo chmod +x /usr/local/bin/musl-g++
6466 echo "musl-g++ created successfully"
You can’t perform that action at this time.
0 commit comments