Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- File: fizzbuzz.gpr
- -- Copyright (c) 2018 Justin Hanekom <justin_hanekom@yahoo.com>
- -- Permission is hereby granted, free of charge, to any person obtaining a
- -- copy of this software and associated documentation files (the "Software"),
- -- to deal in the Software without restriction, including without limitation
- -- the rights to use, copy, modify, merge, publish, distribute, sublicense,
- -- and/or sell copies of the Software, and to permit persons to whom the
- -- Software is furnished to do so, subject to the following conditions:
- --
- -- The above copyright notice and this permission notice shall be included in
- -- all copies or substantial portions of the Software.
- --
- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- -- THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- -- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- -- DEALINGS IN THE SOFTWARE.
- project FizzBuzz is
- for Languages use ("Ada");
- for Main use ("main.adb");
- for Source_Dirs use ("src/main/ada");
- for Exec_Dir use "target";
- for Object_Dir use "target/main/ada";
- package Compiler is
- for Default_Switches ("ada") use
- ("-C", -- use mapping file
- "-E", -- store call stack exceptions
- "-fstack-check", -- perform stack checks
- "-funroll-loops", -- perform loop unrolling optimization
- "-gnat2012", -- enforce Ada 2012 restrictions
- "-gnata", -- assertions enabled
- "-gnatF", -- external names are folded to all uppercase
- "-gnatn", -- activate inlining for subroutines with pragma inline
- "-gnatwae", -- turn on most warnings and treat warnings as errors
- "-gnatwl", -- activate warnings for missing elaboration pragmas
- "-Isrc/main/ada", -- specify include directory
- "-O2", -- control optimization level
- "-s", -- recompile if switches changed
- "-gnaty-o", -- do not check order of subprogram bodies
- "-gnatyx3abcefhiIklL5M78nprStux" -- enable built-in style checks
- );
- end Compiler;
- package Binder is
- for Default_Switches ("ada") use
- ("-E", -- store call stack exceptions
- "-shared" -- link with shared Ada library
- );
- end Binder;
- package Builder is
- for Executable ("main.adb") use "fizzbuzz";
- end Builder;
- end FizzBuzz;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement