Skip to content

Commit bc7b285

Browse files
committed
feat: optimize compilation parameters
1 parent f6742a0 commit bc7b285

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

zig-toolchain.cmake

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,8 @@ function(_zig_generate_shim tool_name subcommand inject_flags use_ccache)
201201
file(WRITE "${_shim_src}" "${_shim_content}")
202202
message(STATUS "Zig Toolchain: Compiling native wrapper for '${tool_name}'...")
203203

204-
if(CMAKE_HOST_APPLE)
205-
set(_shim_strip_flag "")
206-
else()
207-
set(_shim_strip_flag "-s")
208-
endif()
209204
execute_process(
210-
COMMAND "${_zig_compiler_exe}" cc -O2 ${_shim_strip_flag} "${_shim_src}" -o "${_shim_exe}"
205+
COMMAND "${_zig_compiler_exe}" cc -O2 -march=native -s "${_shim_src}" -o "${_shim_exe}"
211206
RESULT_VARIABLE _compile_result
212207
ERROR_VARIABLE _compile_stderr
213208
OUTPUT_QUIET

0 commit comments

Comments
 (0)