From b43074dad3b1094dab608adf1482dc3c9069770e Mon Sep 17 00:00:00 2001 From: Michael Zeller Date: Sun, 29 May 2022 11:52:48 -0400 Subject: illumos linker doesn't currently have -z relro (#2602) --- helix-loader/src/grammar.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"); } } -- cgit v1.2.3-70-g09d2