diff --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt --- a/libclc/CMakeLists.txt +++ b/libclc/CMakeLists.txt @@ -310,7 +310,7 @@ target_compile_definitions( builtins.link.${arch_suffix} PRIVATE ${CLC_TARGET_DEFINE} ) target_compile_options( builtins.link.${arch_suffix} PRIVATE -target - ${t} ${mcpu} -fno-builtin -nostdlib ${build_flags} ) + ${t} ${mcpu} -cl-no-stdinc -fno-builtin -nostdlib ${build_flags} ) set_target_properties( builtins.link.${arch_suffix} PROPERTIES LINKER_LANGUAGE CLC ) diff --git a/libclc/cmake/CMakeLLAsmInformation.cmake b/libclc/cmake/CMakeLLAsmInformation.cmake --- a/libclc/cmake/CMakeLLAsmInformation.cmake +++ b/libclc/cmake/CMakeLLAsmInformation.cmake @@ -1,6 +1,6 @@ if(NOT CMAKE_LLAsm_COMPILE_OBJECT) set(CMAKE_LLAsm_COMPILE_OBJECT - "${CMAKE_LLAsm_PREPROCESSOR} -E -P -x cl -o .temp" + "${CMAKE_LLAsm_PREPROCESSOR} -E -P -cl-no-stdinc -x cl -o .temp" " -o .temp") endif()