From: Lucretia <laguest9000@googlemail.com>
Subject: Problems passing compiler parameters in GPR files
Date: Sun, 13 Nov 2016 05:45:48 -0800 (PST)
Date: 2016-11-13T05:45:48-08:00 [thread overview]
Message-ID: <43d56692-e83b-4aa9-8d3c-0dbb9b7d7b08@googlegroups.com> (raw)
Hi,
I've been updating my bare bones project (https://github.com/Lucretia/bare_bones) to use a later version of GNAT (currently, 4.9).
I've run into a problem passing gnatmake parameters in the GPR files. I've set -gnaty-s and -gnatM120 for example and they both get ignored unless I add them to the i586-elf-gnatmake commandline.
I've managed to get the parameters to be recognised by doing this in the bare_bones.gpr:
package Builder is
Ada_Switches := ("-gnat2012", "-gnata", "-gnato", "-gnatE",
"-gnaty", "-gnaty-s", "-gnatyO", "-gnaty+M120", "-gnatyx",
"-gnaty+d", "-gnatv");
end Builder;
package Compiler is
Ada_Switches := ("-ffunction-sections", "-fdata-sections") & Builder.Ada_Switches;
-- "-gnat2012", "-gnata", "-gnato", "-gnatE",
-- "-gnatyN", "-gnaty", "-gnaty-s", "-gnatyO", "-gnatyM120", "-gnatyx",
-- "-gnaty+d", "-gnatv");
I've no real clue why not having only those in the builder don't work. Can anyone explain?
Thanks,
Luke.
next reply other threads:[~2016-11-13 13:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-13 13:45 Lucretia [this message]
2016-11-14 8:28 ` Problems passing compiler parameters in GPR files briot.emmanuel
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox