diff --git a/.cargo/config b/.cargo/config index af9200c65e7..7afd4b61732 100644 --- a/.cargo/config +++ b/.cargo/config @@ -7,3 +7,11 @@ [build] rustdocflags = "--document-private-items" +# On illumos, use `-znocompstrtab` to reduce link time. +# +# Note that these flags are overridden by a user's environment variable, so +# things critical to correctness probably don't belong here. +[target.x86_64-unknown-illumos] +rustflags = [ + "-C", "link-arg=-Wl,-znocompstrtab" +]