microbit: Integrate support for transparent gcc compiles

Custom CMakefile added to microbit-dal to automatically assemble the correct
version of CortexContextSwitch.s accordiong to the current build target.
master
Joe Finney 7 years ago
parent cbaec38d06
commit f616011ac1
  1. 4
      source/CMakeLists.txt
  2. 0
      source/CortexContextSwitch.s.armcc

@ -27,11 +27,15 @@ set(YOTTA_AUTO_MICROBIT-DAL_CPP_FILES
"DynamicPwm.cpp"
"MicroBitPin.cpp"
"MicroBitSerial.cpp"
"MicroBitHeapAllocator.cpp"
)
if(CMAKE_COMPILER_IS_GNUCC)
file(REMOVE "CortexContextSwitch.s")
configure_file("CortexContextSwitch.s.gcc" "CortexContextSwitch.s" COPYONLY)
else()
file(REMOVE "CortexContextSwitch.s")
configure_file("CortexContextSwitch.s.armcc" "CortexContextSwitch.s" COPYONLY)
endif()
set(YOTTA_AUTO_MICROBIT-DAL_S_FILES

Loading…
Cancel
Save