This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -2576,6 +2576,7 @@ void Compiler::compInitOptions(CORJIT_FLAGS* jitFlags)
2576
2576
{
2577
2577
printf (" ****** START compiling %s (MethodHash=%08x)\n " ,
2578
2578
info.compFullName , info.compMethodHash ());
2579
+ printf (" Generating code for %s %s\n " , Target::g_tgtPlatformName, Target::g_tgtCPUName);
2579
2580
printf (" " ); // in our logic this causes a flush
2580
2581
}
2581
2582
Original file line number Diff line number Diff line change @@ -1823,6 +1823,7 @@ class Target
1823
1823
{
1824
1824
public :
1825
1825
static const char * g_tgtCPUName ;
1826
+ static const char * g_tgtPlatformName ;
1826
1827
1827
1828
enum ArgOrder { ARG_ORDER_R2L , ARG_ORDER_L2R };
1828
1829
static const enum ArgOrder g_tgtArgOrder ;
Original file line number Diff line number Diff line change @@ -20,6 +20,21 @@ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
20
20
21
21
#include " opcode.h"
22
22
23
+ /* ****************************************************************************/
24
+ // Define the string platform name based on compilation #ifdefs. This is the
25
+ // same code for all platforms, hence it is here instead of in the targetXXX.cpp
26
+ // files.
27
+
28
+ #ifdef PLATFORM_UNIX
29
+ // Should we distinguish Mac? Can we?
30
+ // Should we distinguish flavors of Unix? Can we?
31
+ const char * Target::g_tgtPlatformName = " Unix" ;
32
+ #else // !PLATFORM_UNIX
33
+ const char * Target::g_tgtPlatformName = " Windows" ;
34
+ #endif // !PLATFORM_UNIX
35
+
36
+ /* ****************************************************************************/
37
+
23
38
#define DECLARE_DATA
24
39
25
40
extern
You can’t perform that action at this time.
0 commit comments