Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PoroCYon
oidos
Commits
cf1b7cec
Commit
cf1b7cec
authored
Apr 22, 2017
by
mathieu m
Committed by
Aske Simon Christensen
Apr 22, 2017
Browse files
Library name dependent on target environment
parent
b25b3521
Changes
1
Hide whitespace changes
Inline
Side-by-side
synth/build.rs
View file @
cf1b7cec
extern
crate
nasm_rs
;
fn
main
()
{
#[cfg(not(target_env
=
"msvc"
))]
nasm_rs
::
compile_library
(
"libadditive.a"
,
&
[
"src/additive.asm"
]);
#[cfg(target_env
=
"msvc"
)]
nasm_rs
::
compile_library
(
"additive.lib"
,
&
[
"src/additive.asm"
]);
println!
(
"cargo:rustc-link-lib=static=additive"
);
}
Write
Preview
Markdown
is supported
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