mirror of
https://github.com/AdaCore/gprbuild.git
synced 2026-02-12 12:30:13 -08:00
Make the examples usable as minimal tests
Display the executed commands. Fix warnings that would be printed on standard error.
This commit is contained in:
committed by
Nicolas Boulenguez
parent
3740defff8
commit
303def05f3
@@ -2,5 +2,5 @@ PTH := .:$(PATH)
|
||||
export PATH=${PTH}
|
||||
|
||||
all clean run:
|
||||
-${foreach dir,${wildcard */}, ${MAKE} $@ -C ${dir};}
|
||||
${foreach dir,${wildcard */}, ${MAKE} $@ -C ${dir} && } true
|
||||
.PHONY: all clean run
|
||||
|
||||
@@ -34,7 +34,11 @@
|
||||
|
||||
with Ada.Text_IO; use Ada.Text_IO;
|
||||
with Ada.Integer_Text_IO;
|
||||
pragma Warnings (Off, """System.Parameters"" is An Internal GNAT Unit");
|
||||
pragma Warnings (Off, "use of This Unit is Non-Portable and Version-dependent");
|
||||
with System.Parameters;
|
||||
pragma Warnings (On, """System.Parameters"" is An Internal GNAT Unit");
|
||||
pragma Warnings (On, "use of This Unit is Non-Portable and Version-dependent");
|
||||
package body FM is
|
||||
|
||||
Init_Error : exception;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include <stdlib.h>
|
||||
extern void adainit (void);
|
||||
extern void adafinal (void);
|
||||
extern void do_it_in_ada(void);
|
||||
|
||||
Reference in New Issue
Block a user