diff options
author | Kyungwoo Lee <kyulee@microsoft.com> | 2016-01-01 06:25:29 -0800 |
---|---|---|
committer | Kyungwoo Lee <kyulee@microsoft.com> | 2016-01-01 06:31:57 -0800 |
commit | e380f2c2751ec539a1acd4cf0c027ab62d845328 (patch) | |
tree | de82e1e142cc4d93bc4bc9d095ee2c1ca4fc29ea /src/ilasm | |
parent | a9dc13887582351bcb2796b1be0c6a23ced07642 (diff) | |
download | coreclr-e380f2c2751ec539a1acd4cf0c027ab62d845328.tar.gz coreclr-e380f2c2751ec539a1acd4cf0c027ab62d845328.tar.bz2 coreclr-e380f2c2751ec539a1acd4cf0c027ab62d845328.zip |
Enable ilasm round trip test for xPlatforms
1. Enable CLRTest.Execute.Bash.targets similar to CLRTest.Execute.Batch.targets.
2. _IlasmSwitches uses '-' instead of '/'
3. Disable optimization on the prebuilt asmparse.c due to https://github.com/dotnet/coreclr/issues/2305
Diffstat (limited to 'src/ilasm')
-rw-r--r-- | src/ilasm/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ilasm/CMakeLists.txt b/src/ilasm/CMakeLists.txt index eb84533770..bd7934965f 100644 --- a/src/ilasm/CMakeLists.txt +++ b/src/ilasm/CMakeLists.txt @@ -25,11 +25,13 @@ set_source_files_properties( prebuilt/asmparse.c PROPERTIES LANGUAGE CXX ) if(CLR_CMAKE_PLATFORM_UNIX) add_compile_options(-x c++) # Need generate a right form of asmparse.c to avoid the following options. + # Clang also produces a bad-codegen on this prebuilt file with optimization. # https://github.com/dotnet/coreclr/issues/2305 add_compile_options(-Wno-delete-non-virtual-dtor) add_compile_options(-Wno-deprecated-register) add_compile_options(-Wno-array-bounds) add_compile_options(-Wno-unused-label) + set_source_files_properties( prebuilt/asmparse.c PROPERTIES COMPILE_FLAGS -O0 ) endif(CLR_CMAKE_PLATFORM_UNIX) add_executable(ilasm |