File tree Expand file tree Collapse file tree 3 files changed +37
-2
lines changed Expand file tree Collapse file tree 3 files changed +37
-2
lines changed Original file line number Diff line number Diff line change 52
52
# `llvm-14-tools` is needed to install the `FileCheck` binary which is used for asm tests.
53
53
run : sudo apt-get install ninja-build ripgrep llvm-14-tools llvm libstdc++6
54
54
55
- - run : g++ -v
55
+ - run : find / -name libstdc++.so.6 2> /dev/null || true
56
+ - run : find / -name libstdc++.so 2> /dev/null || true
56
57
57
- - run : find / -name libstdc++.so | true
58
+ - run : |
59
+ ls $(which cc)
60
+ cc tests/main.cpp -o main -lstdc++
61
+ ldd main
58
62
59
63
- name : Install rustfmt & clippy
60
64
run : rustup component add rustfmt clippy
67
71
sudo dpkg --force-overwrite -i ${{ matrix.libgccjit_version.gcc }}
68
72
echo 'gcc-path = "/usr/lib/"' > config.toml
69
73
74
+ # - name: Install libstdc++
75
+ # run: |
76
+ # sudo apt-get --reinstall install libstdc++6
77
+ # sudo mkdir -p /usr/lib/gcc/x86_64-linux-gnu/15/
78
+ # sudo mkdir -p /usr/lib/gcc/x86_64-linux-gnu/16/
79
+ # sudo cp /usr/lib/gcc/x86_64-linux-gnu/14/libstdc++.so /usr/lib/gcc/x86_64-linux-gnu/15/
80
+ # sudo cp /usr/lib/gcc/x86_64-linux-gnu/14/libstdc++.so /usr/lib/gcc/x86_64-linux-gnu/16/
81
+
82
+ - run : find / -name libstdc++.so.6 2> /dev/null || true
83
+ - run : find / -name libstdc++.so 2> /dev/null || true
84
+
85
+ - run : g++ -v
86
+ - run : cc -v
87
+
88
+ - run : |
89
+ sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-14 30
90
+ cc -v
91
+
92
+ - run : ls /usr/bin
93
+
94
+ - run : cc tests/main.cpp -o main -lstdc++
95
+ # - run: cc tests/main.cpp -o main
96
+
70
97
- name : Set env
71
98
run : |
72
99
echo "workspace="$GITHUB_WORKSPACE >> $GITHUB_ENV
Original file line number Diff line number Diff line change 49
49
sudo dpkg --force-overwrite -i gcc-15.deb
50
50
echo 'gcc-path = "/usr/lib/"' > config.toml
51
51
52
+ - run : sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-14 30
53
+
52
54
- name : Set env
53
55
run : |
54
56
echo "workspace="$GITHUB_WORKSPACE >> $GITHUB_ENV
Original file line number Diff line number Diff line change
1
+ #include < iostream>
2
+
3
+ int main () {
4
+ std::cout << " Hello, world!\n " ;
5
+ return 0 ;
6
+ }
You can’t perform that action at this time.
0 commit comments