
This variable define how the link step is done. Possible values are: * DRIVER: the compiler is used as driver for the link step * LINKER: the linker is used directly for the link step.
12 lines
465 B
CMake
12 lines
465 B
CMake
# Bruce C Compiler ignores "-g" flag and optimization cannot be
|
|
# enabled here (it is implemented only for 8086 target).
|
|
string(APPEND CMAKE_C_FLAGS_INIT " -D__CLASSIC_C__")
|
|
string(APPEND CMAKE_C_FLAGS_DEBUG_INIT " -g")
|
|
string(APPEND CMAKE_C_FLAGS_MINSIZEREL_INIT " -DNDEBUG")
|
|
string(APPEND CMAKE_C_FLAGS_RELEASE_INIT " -DNDEBUG")
|
|
string(APPEND CMAKE_C_FLAGS_RELWITHDEBINFO_INIT " -g -DNDEBUG")
|
|
|
|
set(CMAKE_C_LINKER_WRAPPER_FLAG "-X")
|
|
|
|
set(CMAKE_C_LINK_MODE DRIVER)
|