on master help sign in
Compile the grammar libraries with full RELRO on Linux (#599)
9912bd7Orhun Parmaksız
helix-syntax/build.rs+3
@@ -105,6 +105,9 @@ fn build_library(src_path: &Path, language: &str) -> Result<()> {
105 }
105 }
106 }
106 }
107 command.arg("-xc").arg(parser_path);
107 command.arg("-xc").arg(parser_path);
108+ if cfg!(all(unix, not(target_os = "macos"))) {
109+ command.arg("-Wl,-z,relro,-z,now");
110+ }
108 }
111 }
109
112
110 let output = command
113 let output = command