Skip to content

Commit bf3bc68

Browse files
committed
improve comfiler config by make compilation relax on warnings
1 parent 7bd1f58 commit bf3bc68

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

src/Tasks/Implementations/Project/Indy/CreateIndyCompilerConfigsTaskImpl.pas

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,27 @@ implementation
6767
[rfReplaceAll]
6868
)
6969
);
70+
71+
//Indy library causing some warnings during compilation so we need
72+
//to make it stop compilation only on error with -Se rather than -Sew
73+
fWriter.write(
74+
baseDirectory + '/build.dev.cfg',
75+
StringReplace(
76+
fReader.read(baseDirectory + '/build.dev.cfg'),
77+
'-Sew',
78+
'-Se',
79+
[rfReplaceAll]
80+
)
81+
);
82+
fWriter.write(
83+
baseDirectory + '/build.dev.cfg.sample',
84+
StringReplace(
85+
fReader.read(baseDirectory + '/build.dev.cfg.sample'),
86+
'-Sew',
87+
'-Se',
88+
[rfReplaceAll]
89+
)
90+
);
7091
end;
7192
result := self;
7293
end;

src/Tasks/Implementations/Project/Indy/Includes/readme.md.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ strReadme: string =
2929
'$ cd fano-app' + LineEnding +
3030
'$ ./tools/config.setup.sh' + LineEnding +
3131
'```' + LineEnding +
32+
'' + LineEnding +
3233
'Open `.env` file and edit `INDY_DIR` environment variable to match your Indy directory (no trailing slash).' + LineEnding +
3334
'```' + LineEnding +
3435
'$ ./build.sh' + LineEnding +

0 commit comments

Comments
 (0)