Skip to content

Commit

Permalink
Merge pull request #2045 from Unity-Technologies/unity-2021.3-mbe-fix…
Browse files Browse the repository at this point in the history
…-uum-73753-2

Add UNITY_WIN_PLATFORM and use for platform check (case UUM-73753).
  • Loading branch information
joncham committed Jul 1, 2024
2 parents 5a03b57 + 04f3c16 commit 74d8162
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion mcs/build/profiles/unityjit.make
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,16 @@ profile-check:
@:

DEFAULT_REFERENCES = mscorlib
PROFILE_MCS_FLAGS = -d:NET_4_0 -d:NET_4_5 -d:NET_4_6 -d:MONO -d:UNITY_JIT -d:UNITY -d:WIN_PLATFORM -nowarn:1699 -nostdlib $(PLATFORM_DEBUG_FLAGS)


ifeq ($(HOST_PLATFORM),win32)
# The unityjit profiles for all platforms have had WIN_PLATFORM enabled
# for a number of years/releases. Rather than introduce risk of changing this
# add a unity specific version to selectively control changes to platform specific code.
PLATFORM_FLAGS = -d:UNITY_WIN_PLATFORM
endif

PROFILE_MCS_FLAGS = -d:NET_4_0 -d:NET_4_5 -d:NET_4_6 -d:MONO -d:UNITY_JIT -d:UNITY -d:WIN_PLATFORM $(PLATFORM_FLAGS) -nowarn:1699 -nostdlib $(PLATFORM_DEBUG_FLAGS)
API_BIN_PROFILE = v4.7.1

FRAMEWORK_VERSION = 4.5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ internal static partial class Interop
{
internal static partial class Libraries
{
#if WIN_PLATFORM
#if (WIN_PLATFORM && !UNITY_JIT) || UNITY_WIN_PLATFORM
internal const string CompressionNative = "__Internal";
#else
internal const string CompressionNative = "System.Native";
Expand Down

0 comments on commit 74d8162

Please sign in to comment.