diff --git a/ide/lazbuild.lpi b/ide/lazbuild.lpi
index 75be89eeba..af743ac2f4 100644
--- a/ide/lazbuild.lpi
+++ b/ide/lazbuild.lpi
@@ -24,16 +24,19 @@
-
+
-
+
-
+
-
+
+
+
+
@@ -65,9 +68,6 @@
-
-
-
diff --git a/ide/lazbuild.lpr b/ide/lazbuild.lpr
index 7047e79195..f382569437 100644
--- a/ide/lazbuild.lpr
+++ b/ide/lazbuild.lpr
@@ -791,9 +791,9 @@ begin
LoadEnvironmentOptions;
LoadMiscellaneousOptions;
InteractiveSetup:=false;
+ SetupMacros;
SetupCompilerFilename(InteractiveSetup);
SetupLazarusDirectory(InteractiveSetup);
- SetupMacros;
SetupPackageSystem;
SetupOutputFilter;
MainBuildBoss.SetupCompilerInterface;