File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ jobs:
101
101
run : python check.py --binaryen-bin=out/bin
102
102
103
103
build-clang :
104
- name : clang
104
+ name : clang (LTO)
105
105
runs-on : ubuntu-latest
106
106
steps :
107
107
- uses : actions/setup-python@v1
@@ -115,9 +115,9 @@ jobs:
115
115
- name : cmake
116
116
run : |
117
117
mkdir -p out
118
- cmake -S . -B out -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
118
+ cmake -S . -B out -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DBYN_ENABLE_LTO=ON
119
119
- name : build
120
- run : cmake --build out
120
+ run : cmake --build out -v
121
121
- name : test binaryen-lit
122
122
run : python out/bin/binaryen-lit test/lit/parse-error.wast
123
123
- name : test
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ ENDFOREACH()
137
137
138
138
option (BYN_ENABLE_LTO "Build with LTO" Off )
139
139
if (BYN_ENABLE_LTO)
140
- if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang" )
140
+ if (NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
141
141
message (FATAL_ERROR "ThinLTO is only supported by clang" )
142
142
endif ()
143
143
if (NOT APPLE )
You can’t perform that action at this time.
0 commit comments