Skip to content

Commit 4a42872

Browse files
committed
fix: correct ollvm flag formatting in build scripts
1 parent 8bc7010 commit 4a42872

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

malefic-helper/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ fn main() {
154154
.unwrap()
155155
.join("resources/ollvm-flags");
156156
if ollvm_flag_path.exists() {
157-
ollvm = "ollvm";
157+
ollvm = "-ollvm";
158158
}
159159
(
160160
"libmalefic-win-kit-community-gnu",
@@ -170,7 +170,7 @@ fn main() {
170170
"x64"
171171
};
172172

173-
let lib_name = format!("{prefix}-{arch}-{ollvm}{suffix}");
173+
let lib_name = format!("{prefix}-{arch}{ollvm}{suffix}");
174174
let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
175175
let source_path = env::current_dir()
176176
.unwrap()

malefic-pulse/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ fn main() {
6060
.unwrap()
6161
.join("resources/ollvm-flags");
6262
if ollvm_flag_path.exists() {
63-
ollvm = "ollvm";
63+
ollvm = "-ollvm";
6464
}
6565
}
6666

6767

68-
let lib_name = format!("{}-{}-{}{}",
68+
let lib_name = format!("{}-{}{}{}",
6969
default_prefix, default_arch, ollvm, default_suffix);
7070
let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
7171
let current_dir = env::current_dir().unwrap();

0 commit comments

Comments
 (0)