Skip to content

Commit 32432a6

Browse files
[libc] suppress math library warnings on windows (#117638)
1 parent 1973270 commit 32432a6

File tree

2 files changed

+383
-375
lines changed

2 files changed

+383
-375
lines changed

libc/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,12 @@ foreach(entrypoint IN LISTS TARGET_LLVMLIBC_ENTRYPOINTS)
412412
list(APPEND TARGET_ENTRYPOINT_NAME_LIST ${entrypoint_name})
413413
endforeach()
414414

415+
if(MSVC AND NOT MSYS)
416+
set(libc_opt_high_flag "/O2")
417+
else()
418+
set(libc_opt_high_flag "-O3")
419+
endif()
420+
415421
add_subdirectory(include)
416422
add_subdirectory(config)
417423
add_subdirectory(hdr)

0 commit comments

Comments
 (0)