Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable generating exports file for System.IO.Compression.Native on m…
…obile (#46222) #45995 added this and it relies on this code in configuretools.cmake to detect which linker is used: https://github.com/dotnet/runtime/blob/4bc323242d43dda85d490c0630c4637ffc092469/eng/native/configuretools.cmake#L66-L86 However passing `-Wl,--version` to the compiler doesn't seem to work when using the clang provided by the Android NDK, it still uses the system linker in /usr/bin/ld. On OSX that one doesn't support the `--version` option so we don't detect LD_GNU which we'd need for providing the correct `-Wl,--version-script` compiler option. It looks like this only passed on the PR because we build Android on Linux there and the system linker _is_ GNU there so the check was successful. Disable the generation of the exports file on mobile platforms since we don't use it there anyway.
- Loading branch information