-
+ 9EC51C9DFDAC10BAA0E11529637447E9ED8B99D068144B966B6E8C653534CCE7BE30746D6AC834630758A14326353A1F12A560E06A9FF6B88DF151CF1A8A8158
adalisp/test_repl.gpr
(0 . 0)(1 . 48)
2532 project Test_Repl is
2533 for Object_Dir use "obj";
2534
2535 type Mode_Type is ("debug", "release");
2536 Mode : Mode_Type := external ("mode", "release");
2537
2538 for Languages use ("Ada");
2539 for Source_Dirs use ("src");
2540 for Exec_Dir use "bin";
2541 for Main use ("test_repl.adb");
2542
2543 package Compiler is
2544 case Mode is
2545 when "debug" =>
2546 for Switches ("Ada")
2547 use ("-g");
2548 when "release" =>
2549 for Switches ("Ada")
2550 use ("-O2", "-gnata", "-fstack-check",
2551 "-fdata-sections", "-ffunction-sections",
2552 "-gnatec=" & Test_Repl'Project_Dir & "src/restrict.adc");
2553 end case;
2554 end Compiler;
2555
2556 package Binder is
2557 case Mode is
2558 when "debug" =>
2559 for Switches ("Ada")
2560 use ();
2561 when "release" =>
2562 for Switches ("Ada")
2563 use ("-static");
2564 end case;
2565 end Binder;
2566
2567 package Linker is
2568 case Mode is
2569 when "debug" =>
2570 for Switches ("Ada")
2571 use ();
2572 when "release" =>
2573 for Switches ("Ada")
2574 use ("-Wl,--gc-sections",
2575 "-static");
2576 end case;
2577 end Linker;
2578
2579 end Test_Repl;