Skip to content

Commit 97ec20b

Browse files
committed
fix: broken ci compilation, move -WB -WR linker options to the conditionals section of the lpi file
Refs #2483
1 parent 3e797e2 commit 97ec20b

2 files changed

Lines changed: 9 additions & 26 deletions

File tree

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ LAZBUILD := $(shell command -v lazbuild)
33
OPTS := -B --bm=Release
44
OPTSQT5 := --ws=qt5
55
OPTSQT6 := --ws=qt6
6-
OPTSWIN64 := --widgetset=win32 --compiler-options="-WB -WR"
76
LPI := heidisql.lpi
87

98
BIN := ./out/heidisql
@@ -45,7 +44,7 @@ copy-locale:
4544

4645
build-win64:
4746
@echo "=== Building Win64"
48-
$(LAZBUILD) $(OPTS) $(OPTSWIN64) $(LPI)
47+
lazbuild $(OPTS) $(LPI)
4948
@mkdir -p ./out/win64
5049
@mv -v "$(BIN).exe" "$(BINWIN64)"
5150
@"$(PEFLAGS)" "$(BINWIN64)" --set --all

heidisql.lpi

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,11 @@
8282
<OtherUnitFiles Value="source;source\metadarkstyle\src"/>
8383
<UnitOutputDirectory Value="bin\lib\$(TargetCPU)-$(TargetOS)"/>
8484
</SearchPaths>
85-
<Conditionals Value="// example for adding linker options on Mac OS X
86-
//if TargetOS=&apos;darwin&apos; then
87-
// LinkerOptions := &apos; -framework OpenGL&apos;;
88-
if TargetOS=&apos;darwin&apos; then
89-
CustomOptions := &apos;-WM10.15&apos;;
85+
<Conditionals Value="if TargetOS=&apos;darwin&apos; then
86+
CustomOptions := CustomOptions + &apos; -WM10.15&apos;;
9087
91-
// example for adding a unit and include path on Windows
92-
//if SrcOS=&apos;win&apos; then begin
93-
// UnitPath += &apos;;win&apos;;
94-
// IncPath += &apos;;win&apos;;
95-
//end;"/>
88+
if TargetOS=&apos;win64&apos; then
89+
CustomOptions := CustomOptions + &apos; -WB -WR&apos;;"/>
9690
<CodeGeneration>
9791
<SmartLinkUnit Value="True"/>
9892
<Optimizations>
@@ -118,8 +112,6 @@ if TargetOS=&apos;darwin&apos; then
118112
<CompilerMessages>
119113
<IgnoredMessages idx6058="True" idx5071="True" idx5062="True" idx5024="True" idx4104="True" idx4046="True" idx3177="True" idx3175="True"/>
120114
</CompilerMessages>
121-
<CustomOptions Value="-WB
122-
-WR"/>
123115
</Other>
124116
</CompilerOptions>
125117
</Item>
@@ -476,17 +468,11 @@ if TargetOS=&apos;darwin&apos; then
476468
<OtherUnitFiles Value="source;source\metadarkstyle\src"/>
477469
<UnitOutputDirectory Value="bin\lib\$(TargetCPU)-$(TargetOS)"/>
478470
</SearchPaths>
479-
<Conditionals Value="// example for adding linker options on Mac OS X
480-
//if TargetOS=&apos;darwin&apos; then
481-
// LinkerOptions := &apos; -framework OpenGL&apos;;
482-
if TargetOS=&apos;darwin&apos; then
483-
CustomOptions := &apos;-WM10.15&apos;;
471+
<Conditionals Value="if TargetOS=&apos;darwin&apos; then
472+
CustomOptions := CustomOptions + &apos; -WM10.15&apos;;
484473
485-
// example for adding a unit and include path on Windows
486-
//if SrcOS=&apos;win&apos; then begin
487-
// UnitPath += &apos;;win&apos;;
488-
// IncPath += &apos;;win&apos;;
489-
//end;"/>
474+
if TargetOS=&apos;win64&apos; then
475+
CustomOptions := CustomOptions + &apos; -WB -WR&apos;;"/>
490476
<Linking>
491477
<Debugging>
492478
<DebugInfoType Value="dsDwarf3"/>
@@ -503,8 +489,6 @@ if TargetOS=&apos;darwin&apos; then
503489
<CompilerMessages>
504490
<IgnoredMessages idx6058="True" idx5071="True" idx5062="True" idx5024="True" idx4104="True" idx4046="True" idx3177="True" idx3175="True"/>
505491
</CompilerMessages>
506-
<CustomOptions Value="-WB
507-
-WR"/>
508492
</Other>
509493
</CompilerOptions>
510494
<Debugging>

0 commit comments

Comments
 (0)