From 048ceb3a640924600091cbe82df85975397d0253 Mon Sep 17 00:00:00 2001 From: Torsten Rasmussen Date: Fri, 30 Aug 2024 12:54:32 +0200 Subject: [PATCH] cmake: toolchain: remove obsolete and unused macros The macro `toolchain_cc_nostdinc` were made obsolete with PR#24851 and are no longer invoked. Remove the macro implementations. Signed-off-by: Torsten Rasmussen --- cmake/compiler/clang/target.cmake | 8 -------- cmake/compiler/icx/target.cmake | 5 ----- 2 files changed, 13 deletions(-) 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()