Enable FEATURE_METADATA_EMIT_ALL for non-crossgen compiles
authorBruce Forstall <brucefo@microsoft.com>
Thu, 23 Mar 2017 16:31:35 +0000 (09:31 -0700)
committerBruce Forstall <brucefo@microsoft.com>
Thu, 23 Mar 2017 23:29:07 +0000 (16:29 -0700)
This allows ilasm roundtrip test to work with NetStandard 2.0
changes where C# compiler emits a ".permissionset" attribute
into the assembly that ildasm emits. This define enables the
APIs that ilasm uses to process this attribute.

Re-enable ilasm roundtrip test.

Fixes dotnet/coreclr#8418

Commit migrated from https://github.com/dotnet/coreclr/commit/e4849aae67375a2dfbe73bf2bf94e4abc17464d4

src/coreclr/src/md/compiler/CMakeLists.txt
src/coreclr/src/md/compiler/wks/CMakeLists.txt
src/coreclr/src/md/enc/wks/CMakeLists.txt
src/coreclr/src/md/md_wks.cmake
src/coreclr/src/md/runtime/wks/CMakeLists.txt
src/coreclr/src/md/winmd/wks/CMakeLists.txt
src/coreclr/tests/issues.targets
src/coreclr/tests/testsFailingOutsideWindows.txt

index 4d99d11..6d46dc0 100644 (file)
@@ -11,6 +11,7 @@ set(MDCOMPILER_SOURCES
   import.cpp
   importhelper.cpp
   mdutil.cpp
+  newmerger.cpp
   regmeta.cpp
   regmeta_compilersupport.cpp
   regmeta_emit.cpp
index 6bf6c80..eb39ca7 100644 (file)
@@ -1,4 +1,6 @@
 include(../../md_wks.cmake)
 
+add_definitions(-DFEATURE_METADATA_EMIT_ALL)
+
 add_precompiled_header(stdafx.h ../stdafx.cpp MDCOMPILER_SOURCES)
-add_library_clr(mdcompiler_wks ${MDCOMPILER_SOURCES})
\ No newline at end of file
+add_library_clr(mdcompiler_wks ${MDCOMPILER_SOURCES})
index df76641..2c0a2b1 100644 (file)
@@ -1,4 +1,6 @@
 include(../../md_wks.cmake)
 
+add_definitions(-DFEATURE_METADATA_EMIT_ALL)
+
 add_precompiled_header(stdafx.h ../stdafx.cpp MDRUNTIMERW_SOURCES)
 add_library_clr(mdruntimerw_wks ${MDRUNTIMERW_SOURCES})
index ab9df6c..4d72c55 100644 (file)
@@ -3,4 +3,4 @@ add_definitions(-DFEATURE_METADATA_INTERNAL_APIS)
 add_definitions(-DFEATURE_METADATA_IN_VM)
 if(WIN32)
   add_definitions(-DFEATURE_METADATA_VERIFY_LAYOUTS)
-endif(WIN32)
\ No newline at end of file
+endif(WIN32)
index 9a1f72e..3e2a8cc 100644 (file)
@@ -1,5 +1,7 @@
 include(../../md_wks.cmake)
 
+add_definitions(-DFEATURE_METADATA_EMIT_ALL)
+
 add_precompiled_header(stdafx.h ../stdafx.cpp MDRUNTIME_SOURCES)
 add_library_clr(mdruntime_wks ${MDRUNTIME_SOURCES})
 
index 139b68b..defcc1d 100644 (file)
@@ -1,4 +1,6 @@
 include(../../md_wks.cmake)
 
+add_definitions(-DFEATURE_METADATA_EMIT_ALL)
+
 add_precompiled_header(stdafx.h ../stdafx.cpp MDWINMD_SOURCES)
-add_library_clr(mdwinmd_wks ${MDWINMD_SOURCES})
\ No newline at end of file
+add_library_clr(mdwinmd_wks ${MDWINMD_SOURCES})
index db0577d..05a66d6 100644 (file)
         <ExcludeList Include="$(XunitTestBinBase)\Loader\classloader\TypeGeneratorTests\TypeGeneratorTest683\Generated683\*">
             <Issue>6707</Issue>
         </ExcludeList>
-        <ExcludeList Include="$(XunitTestBinBase)\JIT\opt\perf\doublealign\Locals\*">
-            <Issue>8418</Issue>
-        </ExcludeList>
     </ItemGroup>
 
     <!-- The following are x86 failures -->
index de94b28..809433c 100644 (file)
@@ -78,4 +78,3 @@ Loader/classloader/TypeGeneratorTests/TypeGeneratorTest614/Generated614/Generate
 Loader/classloader/TypeGeneratorTests/TypeGeneratorTest681/Generated681/Generated681.sh
 Loader/classloader/TypeGeneratorTests/TypeGeneratorTest682/Generated682/Generated682.sh
 Loader/classloader/TypeGeneratorTests/TypeGeneratorTest683/Generated683/Generated683.sh
-JIT/opt/perf/doublealign/Locals/Locals.sh