mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix typo in build.rs link directive for EGL (#30236)
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
This commit is contained in:
parent
2afb7c1975
commit
70f0088986
1 changed files with 2 additions and 2 deletions
|
@ -39,14 +39,14 @@ fn main() {
|
|||
.write_bindings(gl_generator::StaticStructGenerator, &mut file)
|
||||
.unwrap();
|
||||
|
||||
// Historically, Android builds have succeeded with rust-link-lib=EGL.
|
||||
// Historically, Android builds have succeeded with rustc-link-lib=EGL.
|
||||
// On Windows when relying on %LIBS% to contain libEGL.lib, however,
|
||||
// we must explicitly use rustc-link-lib=libEGL or rustc will attempt
|
||||
// to link EGL.lib instead.
|
||||
if target.contains("windows") {
|
||||
println!("cargo:rustc-link-lib=libEGL");
|
||||
} else {
|
||||
println!("cargo:rust-link-lib=EGL");
|
||||
println!("cargo:rustc-link-lib=EGL");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue