Commit 8f15daa1 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Amazingly, AdaCore did NOT package C++ support.

parent a3f46ff9
......@@ -1223,10 +1223,11 @@ def InvokeOcarinaMakefiles(
userCFlags = keepOnlyFirstCompilationOption(userCFlags)
userLDFlags = keepOnlyFirstCompilationOption(userLDFlags)
if "GNAT_RUNTIME" in platformType:
userCFlags = userCFlags.replace(" -mfloat-abi=hard ", "") # Not supported when compiling Ada
userLDFlags = userLDFlags.replace(" -mfloat-abi=hard ", "") # Not supported when compiling Ada
userCFlags = userCFlags.replace("-fshort-double", "") # Not supported when compiling Ada
userLDFlags = userLDFlags.replace("-fshort-double", "") # Not supported when compiling Ada
userCFlags = userCFlags.replace(" -mfloat-abi=hard ", " ") # Not supported when compiling Ada
userLDFlags = userLDFlags.replace(" -mfloat-abi=hard ", " ") # Not supported when compiling Ada
userCFlags = userCFlags.replace("-fshort-double", " ") # Not supported when compiling Ada
userLDFlags = userLDFlags.replace("-fshort-double", " ") # Not supported when compiling Ada
userLDFlags = userLDFlags.replace("-lstdc++", " ") # Not supported when compiling Ada
customFlags = (' USER_CFLAGS="${USER_CFLAGS}%s" USER_LDFLAGS="${USER_LDFLAGS}%s"' % (userCFlags, userLDFlags))
mysystem((cmd % customFlags) + extra + externals + "\"" + poHiAdaLinkLibs + " make")
return AdaIncludePath
......
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