Is there a way to turn off the quiet mode in DCC32 called by MSBuild?
Asked Answered
I

1

6

By default, the DCC32 compiler is called with the -Q switch that turns the quiet mode on. Is there a way to disable this switch in the .dproj file or by a command line parameter?

I use msbuild for the build automation in my Delphi project. Unfortunately I can't find any reference to the DCC32 parameters when it is executed by MSBuild. Usually I first change a compiler parameter in the Delphi IDE and then check what was changed in the project file. However, this approach won't work for the quiet mode as I can't find this option in the IDE.

Irrecoverable answered 7/10, 2015 at 11:24 Comment(1)
It's probably in the msbuild target file which I think is found under the installation directoryCowles
H
5

You can edit your $(BDS)\bin\CodeGear.Delphi.Targets (XML) file and change the value of the Quiet attribute of the DCC node to false:

<DCC DelphiCompile="$(_ProjectFiles)"
...
      Quiet="false"
...
/>

Update: The DCC MSBuild task is configured to suppress the verbose dcc32 output. See this answer on how to change it.

Hubble answered 7/10, 2015 at 12:19 Comment(1)
Wouldn't it be better to take a copy of the targets file and pass that explicitly to msbuild? However that might be done. Modifying files in install dir is dubious surely.Cowles

© 2022 - 2024 — McMap. All rights reserved.