Tests/RunCMake/TIClang: Remove unused link flags from test cases

Typos in commit 9ba0a54554 (TIClang: Add support for TI Clang-based
compilers, including tiarmclang, 2023-12-06, v3.29.0-rc1~4^2~1)
left the flags unused.  In particular, `CMAKE_<LANG>_LINKER_FLAGS`
does not exist.
This commit is contained in:
Brad King
2025-12-09 15:09:15 -05:00
parent e395f59159
commit 003d728faa
5 changed files with 0 additions and 9 deletions

View File

@@ -25,25 +25,21 @@ foreach(_ticlang_toolchain_path IN LISTS _ticlang_toolchains)
message(STATUS "Found TIClang toolchain: ${_ticlang_toolchain}")
if(_ticlang_toolchain MATCHES "tiarmclang")
set(LINK_OPTS "--use_memcpy=fast,--use_memset=fast,-llnk.cmd")
set(CMAKE_FLAGS "-mcpu=cortex-r5 -Oz")
else()
set(CMAKE_FLAGS "")
set(LINK_OPTS "")
endif()
run_toolchain(ticlang-c
-DCMAKE_SYSTEM_NAME=Generic
-DCMAKE_C_COMPILER=${_ticlang_toolchain}
-DCMAKE_C_FLAGS=${CMAKE_FLAGS}
-DCMAKE_C_LINKER_FLAGS=${LINK_OPTS}
)
run_toolchain(ticlang-cxx
-DCMAKE_SYSTEM_NAME=Generic
-DCMAKE_CXX_COMPILER=${_ticlang_toolchain}
-DCMAKE_CXX_FLAGS=${CMAKE_FLAGS}
-DCMAKE_CXX_LINKER_FLAGS=${LINK_OPTS}
)
run_toolchain(ticlang-asm
@@ -56,6 +52,5 @@ foreach(_ticlang_toolchain_path IN LISTS _ticlang_toolchains)
-DCMAKE_SYSTEM_NAME=Generic
-DCMAKE_C_COMPILER=${_ticlang_toolchain}
-DCMAKE_C_FLAGS=${CMAKE_FLAGS}
-DCMAKE_C_LINKER_FLAGS=${LINK_OPTS}
)
endforeach()

View File

@@ -2,4 +2,3 @@ enable_language(ASM)
add_executable(exec-asm)
target_sources(exec-asm PRIVATE module.s)
target_link_options(exec-asm PRIVATE ${LINKER_OPTS})

View File

@@ -2,4 +2,3 @@ enable_language(C)
add_executable(exec-c)
target_sources(exec-c PRIVATE module.c)
target_link_options(exec-c PRIVATE ${LINKER_OPTS})

View File

@@ -2,4 +2,3 @@ enable_language(CXX)
add_executable(exec-cxx)
target_sources(exec-cxx PRIVATE module.cxx)
target_link_options(exec-cxx PRIVATE ${LINKER_OPTS})

View File

@@ -7,4 +7,3 @@ add_executable(exec-lib-c)
target_sources(exec-lib-c PRIVATE module.c)
target_compile_definitions(exec-lib-c PRIVATE __USE_LIBFUN)
target_link_libraries(exec-lib-c LINK_PUBLIC ticlang-test-lib)
target_link_options(exec-lib-c PRIVATE ${LINKER_OPTS})