Skip to content

Commit

Permalink
feat: add 'CUSTOM_COMPILE' symbol for custom compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Dec 2, 2021
1 parent 2e49e4c commit 745ecd9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Plugins/CSharpCompilerSettings/CscSettingsAsset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ public string GetSymbolModifier(string asmdefPath)
sb.Append(LVersion.CSharp7_3 <= v ? "CSHARP_7_3_OR_NEWER;" : "!CSHARP_7_3_OR_NEWER;");
sb.Append(LVersion.CSharp8 <= v ? "CSHARP_8_OR_NEWER;" : "!CSHARP_8_OR_NEWER;");
sb.Append(LVersion.CSharp9 <= v ? "CSHARP_9_OR_NEWER;" : "!CSHARP_9_OR_NEWER;");

sb.Append("CUSTOM_COMPILE;");
}

if (!IsProjectSetting && 0 < m_SymbolModifier.Length)
Expand Down

0 comments on commit 745ecd9

Please sign in to comment.