Commit 478cfa18 authored by Maxime Perrotin's avatar Maxime Perrotin

Use gprconfig to force the use of GCC when LLVM is there

parent 7236498a
Pipeline #2139 passed with stage
in 8 minutes and 20 seconds
......@@ -11,7 +11,7 @@
@@SET@@ STM32_GNAT = True
@@END_IF@@
GNATMAKE = gprbuild
GPRBUILD = gprbuild
@@IF@@ @_STM32_GNAT_@
export ADA_PROJECT_PATH=${CURDIR}/Ada_Drivers_Library/boards:${CURDIR}/Ada_Drivers_Library/boards/@_REPLACE(_full/):LOWER:Ada_Runtime_@/
......@@ -26,7 +26,7 @@ TARGET = NATIVE
@@IF@@ @_STM32_GNAT_@
all: Ada_Drivers_Library/README.md ../../dataview/Ada_STM32/built
@@TABLE@@
$(GNATMAKE) -p -P @_LOWER:Partition_Names_@.gpr -XTARGET=$(TARGET) -cargs:C -DSTATIC=static -cargs:C -DFP_WORD_SIZE=4
$(GPRBUILD) -p -P @_LOWER:Partition_Names_@.gpr -XTARGET=$(TARGET) -cargs:C -DSTATIC=static -cargs:C -DFP_WORD_SIZE=4
@@END_TABLE@@
Ada_Drivers_Library/README.md:
......@@ -40,7 +40,9 @@ Ada_Drivers_Library/README.md:
@@ELSE@@
all:
# Configure gprbuild to use GCC toolchain (for C and C++) even if LLVM is installed
gprconfig --batch --target=x86_64-pc-linux-gnu --config=C,,,,GCC --config=C++,,,,G++
@@TABLE@@
$(GNATMAKE) -p -P @_LOWER:Partition_Names_@.gpr -XTARGET=$(TARGET) -cargs:C -DSTATIC=static -cargs:Ada -gnatE
$(GPRBUILD) -p -P @_LOWER:Partition_Names_@.gpr -XTARGET=$(TARGET) -cargs:C -DSTATIC=static -cargs:Ada -gnatE
@@END_TABLE@@
@@END_IF@@
......@@ -20,6 +20,8 @@ simulate:
@@END_TABLE@@
debug_native:
# Configure gprbuild to use GCC toolchain even if LLVM is installed
gprconfig --batch --target=x86_64-pc-linux-gnu --config=C,,,,GCC --config=C++,,,,G++
@@TABLE@@
gprbuild -v -p -P @_LOWER:Partition_Names_@.gpr -XCFG="Debug" -cargs:C -DSTATIC=""
@@END_TABLE@@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment