Skip to content

Update template#6

Draft
ztozh wants to merge 1 commit intoMatway:masterfrom
ztozh:update25.11.06
Draft

Update template#6
ztozh wants to merge 1 commit intoMatway:masterfrom
ztozh:update25.11.06

Conversation

@ztozh
Copy link
Copy Markdown

@ztozh ztozh commented Nov 6, 2025

Add [AbsolutePaths] MSBuild option
Add [assert] configuration
Add split compilation mode
Disable incremental linking
Switch to upcoming SL
Fix false-positive build error on built-in Error event
Fix [AdditionalOptions] definitions for debug configurations for ll-files
Use UTF-8 for compiler output when calling MSBuild
Rename [Debug] to [debug]
Rename [Release] to [release]
Replace output file for files without regular compilation
Replace path separator [\] with [/] when calling MSBuild

@ztozh ztozh force-pushed the update25.11.06 branch 4 times, most recently from 9aa6380 to f889dc9 Compare November 7, 2025 12:56
…plit compilation mode; Disable incremental linking; Fix [AdditionalOptions] definitions for debug configurations for ll-files; Fix false-positive build error on built-in Error event; Rename [Debug] configuration to [debug]; Rename [Release] configuration to [release]; Replace output file for files without regular compilation; Replace the path separator [\] with [/] when calling MSBuild; Switch to upcoming SL; Use UTF-8 for compiler output when calling MSBuild
@ztozh ztozh marked this pull request as ready for review November 10, 2025 11:46
@ztozh ztozh closed this Nov 10, 2025
@ztozh ztozh reopened this Nov 10, 2025
@ztozh ztozh marked this pull request as draft December 9, 2025 13:03
Comment thread llvm.cs

protected override bool HandleTaskExecutionErrors()
{
base.HandleTaskExecutionErrors();

This comment was marked as resolved.

Comment thread llvm.props
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">-O0 -Wno-override-module -c -target x86_64-pc-windows $(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">-O3 -Wno-override-module -c -target i386-pc-windows $(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">-O3 -Wno-override-module -c -target x86_64-pc-windows $(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='assert|win32'">-O3 -Wno-override-module -c -target i386-pc-windows</AdditionalOptions>

This comment was marked as resolved.

Comment thread mpl.cs

protected override bool HandleTaskExecutionErrors()
{
base.HandleTaskExecutionErrors();

This comment was marked as resolved.

Comment thread mplTemplate.vcxproj
<IntDir>x32_$(Configuration)\</IntDir>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='debug|win32'">
<IntDir>$(Configuration)32\</IntDir>
<LinkIncremental>false</LinkIncremental>

This comment was marked as resolved.

Comment thread mplTemplate.vcxproj
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
Copy link
Copy Markdown
Contributor

@Parean Parean Dec 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we directly specify Optimization with Disabled/MaxSpeed ​​to ensure our configuration approach is followed?

Comment thread mpl.targets

<!-- Replace output file for files without partial compilation -->
<MPL Condition="%(MPL.PartialCompilation) != true" OutputFile="$(IntDir)mpl.ll"/>
<MPL Condition="%(MPL.CompilationMode) != Regular" OutputFile="$(IntDir)$([System.String]::Copy(%(Identity)).Replace(&quot;\&quot;, &quot;_&quot;)).ll"/> <!-- Replace output file for files without regular compilation -->

This comment was marked as resolved.

Comment thread mpl.cs
if (firstFile.GetMetadata("PartialCompilation") != "true") ActiveToolSwitches.Remove("PartialCompilation");
else ActiveToolSwitches["PartialCompilation"] = new ToolSwitch(ToolSwitchType.String) { MultipleValues = true, SwitchValue = "-part" };
string compilationMode = firstFile.GetMetadata("CompilationMode");
if (compilationMode == "Partial") { ActiveToolSwitches["OutputFile"] = new ToolSwitch(ToolSwitchType.File) { SwitchValue = "-o ", Value = firstFile.GetMetadata("OutputFile") }; ActiveToolSwitches["PartialCompilation"] = new ToolSwitch(ToolSwitchType.String) { MultipleValues = true, SwitchValue = "-part" }; }

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants