Skip to content

Commit

Permalink
Update tryrun.cmake in order to be able to build corefx in consolidat…
Browse files Browse the repository at this point in the history
…ed repo (dotnet/coreclr#27674)

Commit migrated from dotnet/coreclr@10bcb6f
  • Loading branch information
safern authored and ViktorHofer committed Nov 5, 2019
1 parent a8bf206 commit ee31a86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions docs/coreclr/building/testing-with-corefx.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,6 @@ After the tests are copied to the remote machine, you want to run them. Use one
[tests\scripts\run-corefx-tests.sh](https://github.com/dotnet/coreclr/blob/master/tests/scripts/run-corefx-tests.sh)
to run all the tests (consult the scripts for proper usage). Or, run a single test as described below.

## Other corefx build considerations

To build for Linux arm32, you need to make sure to build using clang 5 (the default is clang 3.9).
You might need to pass `/p:BuildNativeCompiler=--clang5.0` to the corefx build scripts.

## Running a single CoreFX test assembly

Once you've built the CoreFX tests (possibly with replaced CoreCLR bits), you can also run just a single test. E.g.,
Expand Down
3 changes: 3 additions & 0 deletions src/coreclr/cross/tryrun.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ if(TARGET_ARCH_NAME MATCHES "^(armel|arm|arm64|x86)$")
set_cache_value(HAVE_CLOCK_MONOTONIC_COARSE_EXITCODE 0)
set_cache_value(HAVE_CLOCK_MONOTONIC_EXITCODE 0)
set_cache_value(HAVE_CLOCK_THREAD_CPUTIME_EXITCODE 0)
set_cache_value(HAVE_CLOCK_REALTIME_EXITCODE 0)
set_cache_value(HAVE_COMPATIBLE_ACOS_EXITCODE 0)
set_cache_value(HAVE_COMPATIBLE_ASIN_EXITCODE 0)
set_cache_value(HAVE_COMPATIBLE_ATAN2_EXITCODE 0)
Expand Down Expand Up @@ -48,10 +49,12 @@ if(TARGET_ARCH_NAME MATCHES "^(armel|arm|arm64|x86)$")


if(ALPINE_LINUX)
set_cache_value(HAVE_SHM_OPEN_THAT_WORKS_WELL_ENOUGH_WITH_MMAP_EXITCODE 1)
set_cache_value(SSCANF_CANNOT_HANDLE_MISSING_EXPONENT_EXITCODE 0)
set_cache_value(SSCANF_SUPPORT_ll_EXITCODE 1)
set_cache_value(UNGETC_NOT_RETURN_EOF_EXITCODE 1)
else()
set_cache_value(HAVE_SHM_OPEN_THAT_WORKS_WELL_ENOUGH_WITH_MMAP_EXITCODE 0)
set_cache_value(SSCANF_CANNOT_HANDLE_MISSING_EXPONENT_EXITCODE 1)
set_cache_value(SSCANF_SUPPORT_ll_EXITCODE 0)
set_cache_value(UNGETC_NOT_RETURN_EOF_EXITCODE 0)
Expand Down

0 comments on commit ee31a86

Please sign in to comment.