diff --git a/cmake/compiler/clang/target.cmake b/cmake/compiler/clang/target.cmake index ae92664394c..30e5da399af 100644 --- a/cmake/compiler/clang/target.cmake +++ b/cmake/compiler/clang/target.cmake @@ -83,11 +83,3 @@ if(NOT "${ARCH}" STREQUAL "posix") string(REPLACE ";" " " CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}") endif() - -# Load toolchain_cc-family macros - -macro(toolchain_cc_nostdinc) - if(NOT "${ARCH}" STREQUAL "posix") - zephyr_compile_options( -nostdinc) - endif() -endmacro() diff --git a/cmake/compiler/icx/target.cmake b/cmake/compiler/icx/target.cmake index b72af1600ac..cd389497a5d 100644 --- a/cmake/compiler/icx/target.cmake +++ b/cmake/compiler/icx/target.cmake @@ -63,11 +63,6 @@ endif() set(CMAKE_REQUIRED_FLAGS -nostartfiles -nostdlib ${isystem_include_flags}) string(REPLACE ";" " " CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}") -# Load toolchain_cc-family macros -macro(toolchain_cc_nostdinc) - zephyr_compile_options( -nostdinc) -endmacro() - if(CONFIG_CPP) list(APPEND TOOLCHAIN_C_FLAGS "-no-intel-lib=libirc") endif()