diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-10-15 16:59:29 -0700 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2021-01-06 14:52:26 +0530 |
commit | d69ca46e9d79bb75601259220d0fb749932d572e (patch) | |
tree | 93fc52102794c4c69a763fc0ab4071c0c0079bf0 | |
parent | 453f5e83537bd341dee9a8f54671195ab3c5dec2 (diff) | |
download | meson-d69ca46e9d79bb75601259220d0fb749932d572e.zip meson-d69ca46e9d79bb75601259220d0fb749932d572e.tar.gz meson-d69ca46e9d79bb75601259220d0fb749932d572e.tar.bz2 |
compilers/rust: warn about setting -C linker in your compiler args
-rw-r--r-- | mesonbuild/environment.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index 941acdc..6545a00 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -1651,6 +1651,13 @@ class Environment: # the default use that, and second add the necessary arguments # to rust to use -fuse-ld + if any(a.startswith('linker=') for a in compiler): + mlog.warning( + 'Please do not put -C linker= in your compiler ' + 'command, set rust_ld=command in your cross file ' + 'or use the RUST_LD environment variable. meson ' + 'will override your seletion otherwise.') + if override is None: extra_args = {} always_args = [] |