From 993f247ac853131065400a2817ccf5147c8bc492 Mon Sep 17 00:00:00 2001 From: Nicolas Setton Date: Tue, 11 Aug 2020 21:51:30 -0400 Subject: [PATCH] T811-021 Add support for using GNATCOLL.Memory in main programs Prep work for adding support for memory reporting in nameres. --- langkit/templates/mains_project_file.mako | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/langkit/templates/mains_project_file.mako b/langkit/templates/mains_project_file.mako index 510689ba0..cf10af75c 100644 --- a/langkit/templates/mains_project_file.mako +++ b/langkit/templates/mains_project_file.mako @@ -33,6 +33,10 @@ project Mains is -- profiling, for instance. for Default_Switches ("Ada") use ("-g", "-Ofast"); end case; + + -- A version of s-memory may be included for memory monitoring + -- with GNATCOLL.Memory: if so, it requires -gnatg. + for Switches ("s-memory.adb") use ("-g", "-O2", "-gnatpg"); end Compiler;