on master help sign in
illumos linker doesn't currently have -z relro (#2602)
b43074dMichael Zeller
helix-loader/src/grammar.rs+4−1
@@ -350,7 +350,10 @@ fn build_tree_sitter_library(src_path: &Path, grammar: GrammarConfiguration) ->
350 }
350 }
351 }
351 }
352 command.arg("-xc").arg(parser_path);
352 command.arg("-xc").arg(parser_path);
353+ if cfg!(all(
354+ unix,
353− if cfg!(all(unix, not(target_os = "macos"))) {
355+ not(any(target_os = "macos", target_os = "illumos"))
356+ )) {
354 command.arg("-Wl,-z,relro,-z,now");
357 command.arg("-Wl,-z,relro,-z,now");
355 }
358 }
356 }
359 }