summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-02-05 14:08:05 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-02-05 14:08:13 (GMT)
commitb27004231d8abb418ab444e594c5ca3566b36280 (patch)
tree59c27d120e76dbe7bcc840e944cccc52c82173bf /Modules
parent85042429b9777f94a8203524b433f344daad76b6 (diff)
parent18d2e6fc8fb94da133a17846e58a87bea5fd9849 (diff)
downloadCMake-b27004231d8abb418ab444e594c5ca3566b36280.zip
CMake-b27004231d8abb418ab444e594c5ca3566b36280.tar.gz
CMake-b27004231d8abb418ab444e594c5ca3566b36280.tar.bz2
Merge topic 'sdcc-no-default-target'
18d2e6fc8f SDCC: Remove default flags for a specific target Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4321
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/Generic-SDCC-C.cmake11
1 files changed, 0 insertions, 11 deletions
diff --git a/Modules/Platform/Generic-SDCC-C.cmake b/Modules/Platform/Generic-SDCC-C.cmake
index c51767e..c3fd186 100644
--- a/Modules/Platform/Generic-SDCC-C.cmake
+++ b/Modules/Platform/Generic-SDCC-C.cmake
@@ -1,4 +1,3 @@
-
# This file implements basic support for sdcc (http://sdcc.sourceforge.net/)
# a free C compiler for 8 and 16 bit microcontrollers.
# To use it either a toolchain file is required or cmake has to be run like this:
@@ -35,22 +34,12 @@ else()
set(CMAKE_AR "${SDCCAR_EXECUTABLE}" CACHE FILEPATH "The sdcc librarian" FORCE)
endif()
-
if("${SDCCAR_EXECUTABLE}" MATCHES "sdcclib")
set(CMAKE_AR_OPTIONS "-a")
else()
set(CMAKE_AR_OPTIONS "-rc")
endif()
-# CMAKE_C_FLAGS_INIT and CMAKE_EXE_LINKER_FLAGS_INIT should be set in a CMAKE_SYSTEM_PROCESSOR file
-if(NOT DEFINED CMAKE_C_FLAGS_INIT)
- string(APPEND CMAKE_C_FLAGS_INIT " -mmcs51 --model-small")
-endif()
-
-if(NOT DEFINED CMAKE_EXE_LINKER_FLAGS_INIT)
- set (CMAKE_EXE_LINKER_FLAGS_INIT --model-small)
-endif()
-
set(CMAKE_C_LINKER_WRAPPER_FLAG "-Wl" ",")
# compile a C file into an object file