Lines Matching +full:pre +full:- +full:defined
1 # SPDX-License-Identifier: Apache-2.0
10 if(NOT DEFINED NOSYSDEF_CFLAG)
11 set(NOSYSDEF_CFLAG -undef)
14 if(DEFINED TOOLCHAIN_HOME)
22 include(${ZEPHYR_BASE}/cmake/gcc-m-cpu.cmake)
23 include(${ZEPHYR_BASE}/cmake/gcc-m-fpu.cmake)
27 -fshort-enums
30 -fshort-enums
40 if(DEFINED CMAKE_C_COMPILER_TARGET)
41 set(clang_target_flag "--target=${CMAKE_C_COMPILER_TARGET}")
46 COMMAND ${CMAKE_C_COMPILER} --print-file-name=${file_name}
56 list(APPEND isystem_include_flags -isystem "\"${isystem_include_dir}\"")
61 list(APPEND TOOLCHAIN_C_FLAGS "-m64")
63 list(APPEND TOOLCHAIN_C_FLAGS "-m32")
68 # C library sysroot was defined at built time of clang/LLVM.
70 # For example, LLVM for Arm comes pre-built with Picolibc, and thus no flags
73 # Other clang/LLVM distributions may come with other pre-built C libraries.
75 # or by specifying '--sysroot <path>'.
79 # 'picolibc.cfg' and specify '--config <spec>.cfg' if such a file is found.
80 # If no cfg-file matching the chosen C implementation, then we assume that the
87 set_linker_property(PROPERTY c_library "--config=${newlib_cfg};-lc")
88 list(APPEND CMAKE_REQUIRED_FLAGS --config=${newlib_cfg})
89 list(APPEND TOOLCHAIN_C_FLAGS --config=${newlib_cfg})
97 set_linker_property(PROPERTY c_library "--config=${picolibc_cfg};-lc")
98 list(APPEND CMAKE_REQUIRED_FLAGS --config=${picolibc_cfg})
99 list(APPEND TOOLCHAIN_C_FLAGS --config=${picolibc_cfg})
106 --print-libgcc-file-name
115 set_property(TARGET linker PROPERTY lib_include_dir "-L${RTLIB_DIR}")
116 set_property(TARGET linker PROPERTY rt_library "-l${RTLIB_NAME}")
118 list(APPEND CMAKE_REQUIRED_FLAGS -nostartfiles -nostdlib ${isystem_include_flags})