From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.99.113.3 with SMTP id m3mr4169074pgc.61.1479044748721; Sun, 13 Nov 2016 05:45:48 -0800 (PST) X-Received: by 10.157.37.247 with SMTP id q110mr904629ota.5.1479044748678; Sun, 13 Nov 2016 05:45:48 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!q124no1273961itd.0!news-out.google.com!x12ni2442ita.0!nntp.google.com!q124no326920itd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 13 Nov 2016 05:45:48 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:c7d:3cda:7600:932b:b705:6315:5a80; posting-account=L2-UcQkAAAAfd_BqbeNHs3XeM0jTXloS NNTP-Posting-Host: 2a02:c7d:3cda:7600:932b:b705:6315:5a80 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <43d56692-e83b-4aa9-8d3c-0dbb9b7d7b08@googlegroups.com> Subject: Problems passing compiler parameters in GPR files From: Lucretia Injection-Date: Sun, 13 Nov 2016 13:45:48 +0000 Content-Type: text/plain; charset=UTF-8 Xref: news.eternal-september.org comp.lang.ada:32298 Date: 2016-11-13T05:45:48-08:00 List-Id: 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.