Skip to content

Commit 720d78f

Browse files
committed
fix gcc build
1 parent d7ac9fd commit 720d78f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ endif()
136136
endif()
137137

138138
# random things to experiment
139+
if(CMAKE_C_COMPILER_ID MATCHES "Clang")
139140
target_compile_options(toywasm-lib-core PUBLIC "SHELL:-Xclang -fmerge-functions" "SHELL:-mllvm -mergefunc-use-aliases")
141+
endif()
140142
#target_compile_options(toywasm-lib-core PUBLIC "SHELL:-mllvm -enable-machine-outliner")
141143
#target_compile_options(toywasm-lib-core PUBLIC "SHELL:-mllvm -hot-cold-split")
142144
#target_compile_options(toywasm-lib-core PUBLIC "SHELL:-mllvm --enable-gvn-hoist")

0 commit comments

Comments
 (0)