File tree Expand file tree Collapse file tree 2 files changed +40
-1
lines changed Expand file tree Collapse file tree 2 files changed +40
-1
lines changed Original file line number Diff line number Diff line change 66
66
# env: COMPILER=g++-5 SAN_FLAGS="-fsanitize=undefined -fno-sanitize-recover -fno-omit-frame-pointer"
67
67
env: COMPILER="ccache g++-5"
68
68
69
+ # OS X using g++
70
+ - stage: Test different OS/CXX/Flags
71
+ os: osx
72
+ sudo: false
73
+ compiler: gcc
74
+ cache: ccache
75
+ before_install:
76
+ #we create symlink to non-ccache gcc, to be used in tests
77
+ - mkdir bin ; ln -s /usr/bin/gcc bin/gcc
78
+ - HOMEBREW_NO_AUTO_UPDATE=1 brew install ccache
79
+ - export PATH=/usr/local/opt/ccache/libexec:$PATH
80
+ env: COMPILER="ccache g++"
81
+
82
+ # OS X using clang++
83
+ - stage: Test different OS/CXX/Flags
84
+ os: osx
85
+ sudo: false
86
+ compiler: clang
87
+ cache: ccache
88
+ before_install:
89
+ - HOMEBREW_NO_AUTO_UPDATE=1 brew install ccache
90
+ - export PATH=/usr/local/opt/ccache/libexec:$PATH
91
+ env:
92
+ - COMPILER="ccache clang++ -Qunused-arguments -fcolor-diagnostics"
93
+ - CCACHE_CPP2=yes
94
+
69
95
# Ubuntu Linux with glibc using g++-5, debug mode
70
96
- stage: Test different OS/CXX/Flags
71
97
os: linux
@@ -154,6 +180,18 @@ jobs:
154
180
- cmake --build build -- -j4
155
181
script: (cd build; ctest -V -L CORE)
156
182
183
+ - stage: Test different OS/CXX/Flags
184
+ os: osx
185
+ cache: ccache
186
+ env:
187
+ - BUILD_SYSTEM=cmake
188
+ - CCACHE_CPP2=yes
189
+ install:
190
+ - cmake -H. -Bbuild '-DCMAKE_BUILD_TYPE=Release' '-DCMAKE_OSX_ARCHITECTURES=x86_64'
191
+ - cmake --build build -- -j4
192
+ script: (cd build; ctest -V -L CORE)
193
+
194
+
157
195
# Run Coverity
158
196
- stage: Test different OS/CXX/Flags
159
197
os: linux
Original file line number Diff line number Diff line change @@ -129,8 +129,9 @@ class journalling_symbol_table_writert
129
129
130
130
void erase(const symbol_tablet::symbolst::const_iterator &entry)
131
131
{
132
+ const irep_idt entry_name=entry->first;
132
133
base_symbol_table.erase(entry);
133
- on_remove(entry->first );
134
+ on_remove(entry_name );
134
135
}
135
136
136
137
void clear()
You can’t perform that action at this time.
0 commit comments