@@ -350,7 +350,10 @@ fn build_tree_sitter_library(src_path: &Path, grammar: GrammarConfiguration) ->
352 command.arg("-xc").arg(parser_path);
352 command.arg("-xc").arg(parser_path);
353− if cfg!(all(unix, not(target_os = "macos"))) {
355+ not(any(target_os = "macos", target_os = "illumos"))
354 command.arg("-Wl,-z,relro,-z,now");
357 command.arg("-Wl,-z,relro,-z,now");