Skip to content

Commit

Permalink
Added MidlSwitches for #1428.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebattista committed Jan 18, 2023
1 parent ebdd5f3 commit 92ac0ef
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sources/GeneratorSdk/MetadataTasks/CompileIdls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ public string AdditionalIncludes
get; set;
}

public string MidlSwitches
{
get; set;
}

public override bool Execute()
{
#if DEBUG
Expand Down Expand Up @@ -93,6 +98,11 @@ public override bool Execute()
{
commonMidlArgs += $" /I\"{this.AdditionalIncludes}\"";
}

if (!string.IsNullOrEmpty(this.MidlSwitches))
{
commonMidlArgs += $" {this.MidlSwitches}";
}

foreach (var idl in idls)
{
Expand Down

0 comments on commit 92ac0ef

Please sign in to comment.