Index: lib/builtins/CMakeLists.txt =================================================================== --- lib/builtins/CMakeLists.txt +++ lib/builtins/CMakeLists.txt @@ -361,11 +361,14 @@ endif () endforeach () + # MSVC doesn't take this argument, silence the warning + append_string_if("NOT MSVC" -std=c99 _cflags) + add_compiler_rt_runtime(clang_rt.builtins STATIC ARCHS ${arch} SOURCES ${${arch}_SOURCES} - CFLAGS "-std=c99" + CFLAGS ${_cflags} PARENT_TARGET builtins) endif () endforeach ()