Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
HermitCore
rusty-loader
Commits
5a764823
Commit
5a764823
authored
May 11, 2021
by
Jonathan Klimt
Committed by
Stefan Lankes
May 11, 2021
Browse files
slighly improved error message for missing cli utils
parent
94285641
Changes
1
Show whitespace changes
Inline
Side-by-side
build.rs
View file @
5a764823
...
...
@@ -14,12 +14,12 @@ fn main() {
.args
(
&
[
"src/arch/x86_64/entry.asm"
,
"-felf64"
,
"-o"
])
.arg
(
&
format!
(
"{}/entry.o"
,
out_dir
))
.status
()
.
unwrap
(
);
.
expect
(
"Could not start nasm. Is it installed?"
);
Command
::
new
(
"ar"
)
.args
(
&
[
"crus"
,
"libentry.a"
,
"entry.o"
])
.current_dir
(
&
Path
::
new
(
&
out_dir
))
.status
()
.
unwrap
(
);
.
expect
(
"Could not start ar. Is it installed?"
);
println!
(
"cargo:rustc-link-search=native={}"
,
out_dir
);
println!
(
"cargo:rustc-link-lib=static=entry"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment