Skip to content

Commit

Permalink
Fix typo in build.rs link directive for EGL (#30236)
Browse files Browse the repository at this point in the history
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
  • Loading branch information
mukilan committed Aug 29, 2023
1 parent 2afb7c1 commit 70f0088
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ports/libsimpleservo/api/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

Expand Down

0 comments on commit 70f0088

Please sign in to comment.