--- a/gpr2.gpr
+++ b/gpr2.gpr
@@ -54,6 +54,10 @@ library project GPR2 extends "shared.gpr" is
       --  generated knowledge base
       for Switches ("gpr2-kb-embedded.adb") use
         Compiler'Default_Switches ("Ada") & ("-gnatws", "-gnatyN");
+
+      for Switches ("gpr2-build-actions-post_bind.adb") use Compiler'Default_Switches ("Ada") & ("-O0");
+      for Switches ("gpr2-build-actions-compile-ada.adb") use Compiler'Default_Switches ("Ada") & ("-O0");
+
    end Compiler;

    --------------
