illumos linker doesn't currently have -z relro (#2602)
commitb43074dad3b1094dab608adf1482dc3c9069770e
authorMichael Zeller <mike@mikezeller.net>
dateSun 29 May 2022, 11:52 (4 years ago)
parentcd4622d
helix-loader/src/grammar.rs+4−1
@@ -350,7 +350,10 @@ fn build_tree_sitter_library(src_path: &Path, grammar: GrammarConfiguration) ->
350350 }
351351 }
352352 command.arg("-xc").arg(parser_path);
353− if cfg!(all(unix, not(target_os = "macos"))) {
353+ if cfg!(all(
354+ unix,
355+ not(any(target_os = "macos", target_os = "illumos"))
356+ )) {
354357 command.arg("-Wl,-z,relro,-z,now");
355358 }
356359 }