summaryrefslogtreecommitdiff
path: root/helix-loader/src/grammar.rs
diff options
context:
space:
mode:
authorMichael Zeller2022-05-29 15:52:48 +0000
committerGitHub2022-05-29 15:52:48 +0000
commitb43074dad3b1094dab608adf1482dc3c9069770e (patch)
tree0116e8dec88a354e5f86480ca2d6cdf0dad3d889 /helix-loader/src/grammar.rs
parentcd4622db9b041b9766b940fed0560b3d1a46a234 (diff)
illumos linker doesn't currently have -z relro (#2602)
Diffstat (limited to 'helix-loader/src/grammar.rs')
-rw-r--r--helix-loader/src/grammar.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/helix-loader/src/grammar.rs b/helix-loader/src/grammar.rs
index 99791f26..d2769d81 100644
--- a/helix-loader/src/grammar.rs
+++ b/helix-loader/src/grammar.rs
@@ -350,7 +350,10 @@ fn build_tree_sitter_library(src_path: &Path, grammar: GrammarConfiguration) ->
}
}
command.arg("-xc").arg(parser_path);
- if cfg!(all(unix, not(target_os = "macos"))) {
+ if cfg!(all(
+ unix,
+ not(any(target_os = "macos", target_os = "illumos"))
+ )) {
command.arg("-Wl,-z,relro,-z,now");
}
}