diff options
author | Michal Strehovský <MichalStrehovsky@users.noreply.github.com> | 2017-04-26 06:36:49 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2017-04-26 06:36:49 +0300 |
commit | 165a55360055286c2cd0177b24ccbd9f7797c183 (patch) | |
tree | 3b7b08ae0149b5d0228de5a740a5581614488cc3 /src/Runtime.Base | |
parent | e69c7e5a46de665f2251fe095c8724d9e3460c6b (diff) |
Centralize build defines (#3431)
The way we were setting common defines (such as `AMD64`, `BIT64`, `ARM`)
was extremely fragile and invited partial fixes such as #3414 and #3424.
This really needs to be centralized.
Diffstat (limited to 'src/Runtime.Base')
-rw-r--r-- | src/Runtime.Base/src/Runtime.Base.csproj | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/src/Runtime.Base/src/Runtime.Base.csproj b/src/Runtime.Base/src/Runtime.Base.csproj index d88da2592..e76d6957b 100644 --- a/src/Runtime.Base/src/Runtime.Base.csproj +++ b/src/Runtime.Base/src/Runtime.Base.csproj @@ -31,25 +31,11 @@ <DefineConstants>FEATURE_GC_STRESS;$(DefineConstants)</DefineConstants> </PropertyGroup> - <PropertyGroup Condition="'$(Platform)' == 'x64'"> - <DefineConstants>AMD64;BIT64;$(DefineConstants)</DefineConstants> - </PropertyGroup> - <PropertyGroup Condition="'$(Platform)' == 'x86'"> - <DefineConstants>X86;$(DefineConstants)</DefineConstants> - </PropertyGroup> <PropertyGroup Condition="'$(Platform)' == 'arm'"> - <DefineConstants>ARM;FEATURE_64BIT_ALIGNMENT;$(DefineConstants)</DefineConstants> - </PropertyGroup> - <PropertyGroup Condition="'$(Platform)' == 'arm64'"> - <DefineConstants>ARM64;BIT64;$(DefineConstants)</DefineConstants> + <DefineConstants>FEATURE_64BIT_ALIGNMENT;$(DefineConstants)</DefineConstants> </PropertyGroup> - - <PropertyGroup Condition="'$(IsProjectNLibrary)' != 'true'"> - <DefineConstants>CORERT;$(DefineConstants)</DefineConstants> - </PropertyGroup> - - <PropertyGroup Condition="'$(TargetsUnix)'=='true'"> - <DefineConstants>PLATFORM_UNIX;$(DefineConstants)</DefineConstants> + <PropertyGroup Condition="'$(Platform)' == 'armel'"> + <DefineConstants>FEATURE_64BIT_ALIGNMENT;$(DefineConstants)</DefineConstants> </PropertyGroup> <PropertyGroup> |