Commit e71c7a51 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras
parents 7eb48050 ba7fb174
......@@ -344,6 +344,8 @@ def CalculateCFLAGS(node, withPOHIC=True):
if g_bPolyORB_HI_C and withPOHIC:
result += handlePoHiC(node) + " "
result += handleXenomaiCflags(node)
if "LINUX_DLL" in kind:
result += "-fPIC"
if "COMPCERT" in kind:
result += "-DWORD_SIZE=4"
if "NDS" in kind:
......@@ -354,6 +356,10 @@ def CalculateCFLAGS(node, withPOHIC=True):
result += " -DNDEBUG " # Not supported by AdaCore's CertyFlie...
# STM32 CPUs do not not support double precision, make sure ASN1SCC uses floats
result += " -DFP_WORD_SIZE=4 "
else:
# For heterogeneous systems (STM32+Native Linux) we must enforce size 8 on Native side
# since the compiler is called once and it may have set --fp-word-size 4
result += " -DFP_WORD_SIZE=8 "
for binary, listOfFunctions in g_distributionNodes.items():
key = re.sub(r'_obj\d+$', '', binary)
......
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