Delete _TARGET_SET_ macro
authorJan Kotas <jkotas@microsoft.com>
Mon, 24 Oct 2016 01:21:22 +0000 (18:21 -0700)
committerJan Kotas <jkotas@microsoft.com>
Mon, 24 Oct 2016 01:21:22 +0000 (18:21 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/2d07bf2e857f22b8303edbd06c545790039a8f3e

src/coreclr/src/inc/gcinfotypes.h
src/coreclr/src/jit/target.h

index 6ed7d50..1ce2639 100644 (file)
@@ -8,32 +8,6 @@
 
 #include "gcinfo.h"
 
-// This file is included when building an "alt jit".  In that case, we are doing a cross-compile:
-// we may be building the ARM jit on x86, for example.  We generally make that work by conditionalizing on
-// a _TARGET_XXX_ variable that we explicitly set in the build, rather than the _XXX_ variable implicitly
-// set by the compiler.  But this file is *also* included by the runtime, and needs in that case to be
-// conditionalized by the actual platform we're compiling for.  We solve this by:
-//    1) conditionalizing on _TARGET_XXX_ in this file,
-//    2) having a _TARGET_SET_ variable so we know whether we're in a compilation for JIT in which some
-//       _TARGET_XXX_ has already been set, and
-//    3) if _TARGET_SET_ is not set, set the _TARGET_XXX_ variable appropriate for the current _XXX_.
-// 
-#ifndef _TARGET_SET_
-
-//#ifdef _X86_
-//#define _TARGET_X86_
-//#endif
-
-//#ifdef _AMD64_
-//#define _TARGET_AMD64_
-//#endif
-
-//#ifdef _ARM_
-//#define _TARGET_ARM_
-//#endif
-
-#endif // _TARGET_SET_
-
 #if defined(_TARGET_AMD64_) || defined(_TARGET_ARM_) || defined(_TARGET_ARM64_)
 #define PARTIALLY_INTERRUPTIBLE_GC_SUPPORTED
 #endif
index 1625189..867dc25 100644 (file)
@@ -6,11 +6,6 @@
 #ifndef _TARGET_H_
 #define _TARGET_H_
 
-// Inform includers that we're in a context in which a target has been set.
-#if defined(_TARGET_X86_) || defined(_TARGET_AMD64_) || defined(_TARGET_ARM_)
-#define _TARGET_SET_
-#endif
-
 // If the UNIX_AMD64_ABI is defined make sure that _TARGET_AMD64_ is also defined.
 #if defined(UNIX_AMD64_ABI)
 #if !defined(_TARGET_AMD64_)