diff --git a/helix-loader/src/grammar.rs b/helix-loader/src/grammar.rs index 99791f26cd0c2..d2769d81f6b44 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"); } }