Share unix getexepath() definition via src/native (#44999)
authorAdeel Mujahid <3840695+am11@users.noreply.github.com>
Thu, 26 Nov 2020 12:24:13 +0000 (14:24 +0200)
committerGitHub <noreply@github.com>
Thu, 26 Nov 2020 12:24:13 +0000 (13:24 +0100)
commit05cd29c81434aae62d0cb680768d0229c8da0d2d
treec7e160c98a93c44ed20c9182ae5c40e9aa90fb79
parenta4d877e0993967a90d677eedffe0c568ffeb7609
Share unix getexepath() definition via src/native (#44999)

* Share unix getexepath() definition via src/native

* Address CR feedback

* Remove duplicate property

* Inline variable with single usage

* Fix include path in tests

* Remove unixcoreruncommon static lib dependency

* Merge coreruncommon.{cpp,h} into corerun.cpp

* Include local headers before the first use

* Remove Unix case from (Win32 only) corerun

* Use realpath in getauxval case

* Delete obsolete comment
31 files changed:
eng/native/build-commons.sh
eng/native/configurepaths.cmake [new file with mode: 0644]
src/coreclr/CMakeLists.txt
src/coreclr/build-runtime.cmd
src/coreclr/build-runtime.sh
src/coreclr/src/hosts/CMakeLists.txt
src/coreclr/src/hosts/corerun/CMakeLists.txt
src/coreclr/src/hosts/unixcorerun/CMakeLists.txt
src/coreclr/src/hosts/unixcorerun/config.h.in [moved from src/coreclr/src/hosts/unixcoreruncommon/config.h.in with 100% similarity]
src/coreclr/src/hosts/unixcorerun/configure.cmake [moved from src/coreclr/src/hosts/unixcoreruncommon/configure.cmake with 100% similarity]
src/coreclr/src/hosts/unixcorerun/corerun.cpp
src/coreclr/src/hosts/unixcoreruncommon/CMakeLists.txt [deleted file]
src/coreclr/src/hosts/unixcoreruncommon/coreruncommon.cpp [deleted file]
src/coreclr/src/hosts/unixcoreruncommon/coreruncommon.h [deleted file]
src/coreclr/src/pal/src/CMakeLists.txt
src/coreclr/src/pal/src/config.h.in
src/coreclr/src/pal/src/init/pal.cpp
src/installer/corehost/CMakeLists.txt
src/installer/corehost/build.cmd
src/installer/corehost/cli/hostmisc/config.h.in
src/installer/corehost/cli/hostmisc/configure.cmake
src/installer/corehost/cli/hostmisc/hostmisc.cmake
src/installer/corehost/cli/hostmisc/pal.unix.cpp
src/libraries/Native/Unix/CMakeLists.txt
src/libraries/Native/Unix/Common/pal_config.h.in
src/libraries/Native/Unix/System.Native/CMakeLists.txt
src/libraries/Native/Unix/System.Native/pal_process.c
src/libraries/Native/Unix/configure.cmake
src/native/common/getexepath.h [new file with mode: 0644]
src/tests/CMakeLists.txt
src/tests/build.cmd