Skip to content

Commit 157395f

Browse files
committed
mex: try setting GCC= to get required compiler
1 parent bf04ec6 commit 157395f

File tree

4 files changed

+3
-21
lines changed

4 files changed

+3
-21
lines changed

.github/workflows/ci-nojvm.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v4
2424

25-
# fixes `GLIBCXX_3.4.32' not found on run
26-
- name: g++-10 for Linux
27-
if: runner.os == 'Linux'
28-
run: |
29-
echo "CXX=g++-10" >> $GITHUB_ENV
30-
echo "CC=gcc-10" >> $GITHUB_ENV
31-
3225
- uses: ./.github/workflows/composite-install-matlab
3326

3427
- uses: ./.github/workflows/composite-buildtool

.github/workflows/ci.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,6 @@ jobs:
3232
steps:
3333
- uses: actions/checkout@v4
3434

35-
# fixes `GLIBCXX_3.4.32' not found on run
36-
- name: g++-10 for Linux
37-
if: runner.os == 'Linux'
38-
run: |
39-
echo "CXX=g++-10" >> $GITHUB_ENV
40-
echo "CC=gcc-10" >> $GITHUB_ENV
41-
4235
- uses: ./.github/workflows/composite-install-matlab
4336

4437
- uses: ./.github/workflows/composite-buildtool

.github/workflows/publish.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ concurrency:
2121
group: "pages"
2222
cancel-in-progress: false
2323

24-
# fixes `GLIBCXX_3.4.32' not found on run
25-
env:
26-
CC: gcc-10
27-
CXX: g++-10
28-
2924

3025
jobs:
3126

buildfile.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020
% FIXME: update when desired GCC != 10 for newer Matlab
2121
if isMATLABReleaseOlderThan("R2025b") && ~startsWith(cxx.Version, "10")
2222
% https://www.mathworks.com/help/matlab/matlab_external/choose-c-or-c-compilers.html
23-
warning("ensure the GCC version matches Matlab's expected version: GCC " + cxx.Version + " detected")
24-
return
23+
% https://www.mathworks.com/help/matlab/matlab_external/change-default-gcc-compiler-on-linux-system.html
24+
25+
compiler_opt = "GCC=g++-10 " + compiler_opt;
2526
end
2627
end
2728

0 commit comments

Comments
 (0)