Skip to content

Commit

Permalink
Add static compiler-flag
Browse files Browse the repository at this point in the history
  • Loading branch information
AliveDevil committed Jul 23, 2024
1 parent 96e8d77 commit bb58682
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/IKVM.NET.Sdk/targets/IKVM.Java.Core.NoTasks.targets
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ Value = b.ToString();
<_IkvmCompilerArgs Include="-sharedclassloader" Condition=" '$(SharedClassLoader)' == 'true' " />
<_IkvmCompilerArgs Include="-w$(WarningLevel)" />
<_IkvmCompilerArgs Include="-noparameterreflection" Condition=" '$(NoParameterReflection)' == 'true' " />
<_IkvmCompilerArgs Include="-static" Condition=" '$(CompileStatically)' == 'true' " />
<_IkvmCompilerArgs Include="-exclude:$([System.IO.Path]::GetFullPath('$(_ExcludeFilePath)'))" Condition="Exists('$(_ExcludeFilePath)') And '@(ExcludeRegex)' != '' " />
<_IkvmCompilerArgs Include="@(_AssemblyAttributesClass->'-assemblyattributes:%(FullPath)')" />
<_IkvmCompilerReferencePath Remove="@(_IkvmCompilerReferencePath)" />
Expand Down
3 changes: 2 additions & 1 deletion src/IKVM.NET.Sdk/targets/IKVM.Java.Core.Tasks.targets
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@
RemoveAssertions="$(RemoveAssertions)"
Resources="@(_IkvmCompilerResource)"
Remap="@(MapFile)"
Input="@(_Convert)" />
Input="@(_Convert)"
Static="$(CompileStatically)" />

<!-- Move temporary files in place of permanent files. -->
<Move SourceFiles="$(_AssemblyTempPath)$(TargetName)$(TargetExt)" DestinationFiles="@(IntermediateAssembly)" OverwriteReadOnlyFiles="true" />
Expand Down
1 change: 1 addition & 0 deletions src/IKVM.NET.Sdk/targets/IKVM.NET.Sdk.props
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<StrictFinalFieldSemantics Condition=" '$(StrictFinalFieldSemantics)' == '' ">true</StrictFinalFieldSemantics>
<RemoveAssertions Condition=" '$(RemoveAssertions)' == '' ">true</RemoveAssertions>
<NoParameterReflection Condition=" '$(NoParameterReflection)' == '' ">true</NoParameterReflection>
<CompileStatically Condition=" '$(CompileStatically') == '' ">false</CompileStatically>
</PropertyGroup>

<!-- language specific functionality -->
Expand Down

0 comments on commit bb58682

Please sign in to comment.