Skip to content

Commit

Permalink
Fea,特意给YY.NuGet.BuildCustomization.AS开洞,添加assembler预处理支持
Browse files Browse the repository at this point in the history
  • Loading branch information
mingkuang-Chuyu committed Sep 25, 2023
1 parent 18ea3eb commit 6451dfe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions YY.Build.Cross.Tasks/Cross/Compile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -903,11 +903,14 @@ public virtual string CompileAs
toolSwitch.DisplayName = "Compile As";
toolSwitch.Description = "Select compile language option for .c and .cpp files. 'Default' will detect based on .c or .cpp extention. (-x c, -x c++)";
toolSwitch.ArgumentRelationList = new ArrayList();
string[][] switchMap = new string[3][]
string[][] switchMap = new string[][]
{
new string[2] { "Default", "" },
new string[2] { "CompileAsC", "-x c" },
new string[2] { "CompileAsCpp", "-x c++" }
new string[2] { "CompileAsCpp", "-x c++" },
// assembler这2个是隐藏功能,给AS特意开的洞。
new string[2] { "CompileAsAsm", "-x assembler" },
new string[2] { "CompileAsAsmWithCpp", "-x assembler-with-cpp" },
};
toolSwitch.SwitchValue = ReadSwitchMap("CompileAs", switchMap, value);
toolSwitch.Name = "CompileAs";
Expand Down
5 changes: 4 additions & 1 deletion YY.Build.Cross.Tasks/OSX/Compile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ public virtual string CompileAs
new string[2] { "CompileAsC", "-x c" },
new string[2] { "CompileAsCpp", "-x c++" },
new string[2] { "CompileAsObjC", "-x objective-c" },
new string[2] { "CompileAsObjCpp", "-x objective-c++" }
new string[2] { "CompileAsObjCpp", "-x objective-c++" },
// assembler这2个是隐藏功能,给AS特意开的洞。
new string[2] { "CompileAsAsm", "-x assembler" },
new string[2] { "CompileAsAsmWithCpp", "-x assembler-with-cpp" },
};
toolSwitch.SwitchValue = ReadSwitchMap("CompileAs", switchMap, value);
toolSwitch.Name = "CompileAs";
Expand Down

0 comments on commit 6451dfe

Please sign in to comment.