File tree 3 files changed +16
-3
lines changed
3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 70
70
castxml-epic : 1
71
71
cppstd : " -std=c++11"
72
72
73
- - os : macos-12
73
+ - os : macos-13
74
74
compiler : xcode
75
75
version : " default"
76
76
python-version : " 3.8"
96
96
run : |
97
97
wget -q -O - https://data.kitware.com/api/v1/file/hashsum/sha512/bdbb67a10c5f8d1b738cd19cb074f409d4803e8077cb8c1072ef4eaf738fa871a73643f9c8282d58cae28d188df842c82ad6620b6d590b0396a0172a27438dce/download | tar zxf - -C ~/
98
98
- name : Setup castxml for Mac
99
- if : matrix.os == 'macos-12 '
99
+ if : matrix.os == 'macos-13 '
100
100
run : |
101
101
wget -q -O - https://data.kitware.com/api/v1/file/hashsum/sha512/5d937e938f7b882a3a3e7941e68f8312d0898aaf2082e00003dd362b1ba70b98b0a08706a1be28e71652a6a0f1e66f89768b5eaa20e5a100592d5b3deefec3f0/download | tar zxf - -C ~/
102
102
- name : Run tests
Original file line number Diff line number Diff line change 3
3
# Distributed under the Boost Software License, Version 1.0.
4
4
# See http://www.boost.org/LICENSE_1_0.txt
5
5
6
+ import platform
7
+
6
8
import pytest
7
9
8
10
from . import autoconfig
20
22
def global_ns ():
21
23
COMPILATION_MODE = parser .COMPILATION_MODE .ALL_AT_ONCE
22
24
config = autoconfig .cxx_parsers_cfg .config .clone ()
23
- config .cflags = "-std=c++11"
25
+ if platform .system () == "Darwin" :
26
+ config .cflags = "-std=c++11 -Dat_quick_exit=atexit -Dquick_exit=exit"
27
+ # https://fr.mathworks.com/matlabcentral/answers/2013982-clibgen-generatelibrarydefinition-error-the-global-scope-has-no-quick_exit-on-mac-m2#answer_1439856
28
+ # https://github.com/jetbrains/kotlin/commit/d50f585911dedec5723213da8835707ac95e1c01
29
+ else :
30
+ config .cflags = "-std=c++11"
24
31
decls = parser .parse (TEST_FILES , config , COMPILATION_MODE )
25
32
global_ns = declarations .get_global_namespace (decls )
26
33
global_ns .init_optimizer ()
Original file line number Diff line number Diff line change 3
3
# Distributed under the Boost Software License, Version 1.0.
4
4
# See http://www.boost.org/LICENSE_1_0.txt
5
5
6
+ import platform
7
+
6
8
import pytest
7
9
8
10
from . import autoconfig
19
21
def global_ns ():
20
22
COMPILATION_MODE = parser .COMPILATION_MODE .ALL_AT_ONCE
21
23
config = autoconfig .cxx_parsers_cfg .config .clone ()
24
+ if platform .system () == "Darwin" :
25
+ config .cflags = "-Dat_quick_exit=atexit -Dquick_exit=exit"
26
+ # https://fr.mathworks.com/matlabcentral/answers/2013982-clibgen-generatelibrarydefinition-error-the-global-scope-has-no-quick_exit-on-mac-m2#answer_1439856
27
+ # https://github.com/jetbrains/kotlin/commit/d50f585911dedec5723213da8835707ac95e1c01
22
28
decls = parser .parse (TEST_FILES , config , COMPILATION_MODE )
23
29
global_ns = declarations .get_global_namespace (decls )
24
30
global_ns .init_optimizer ()
You can’t perform that action at this time.
0 commit comments