We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6742a0 commit 83d3685Copy full SHA for 83d3685
1 file changed
zig-toolchain.cmake
@@ -201,13 +201,8 @@ function(_zig_generate_shim tool_name subcommand inject_flags use_ccache)
201
file(WRITE "${_shim_src}" "${_shim_content}")
202
message(STATUS "Zig Toolchain: Compiling native wrapper for '${tool_name}'...")
203
204
- if(CMAKE_HOST_APPLE)
205
- set(_shim_strip_flag "")
206
- else()
207
- set(_shim_strip_flag "-s")
208
- endif()
209
execute_process(
210
- COMMAND "${_zig_compiler_exe}" cc -O2 ${_shim_strip_flag} "${_shim_src}" -o "${_shim_exe}"
+ COMMAND "${_zig_compiler_exe}" cc -Os -march=native -flto -s "${_shim_src}" -o "${_shim_exe}"
211
RESULT_VARIABLE _compile_result
212
ERROR_VARIABLE _compile_stderr
213
OUTPUT_QUIET
0 commit comments