Skip to content

Truly independent web browser

LibWeb: Declare the dependencies of the Rust bindings archive

Andreas Klingf3bd53187e99
diff --git a/Libraries/LibWeb/CMakeLists.txt b/Libraries/LibWeb/CMakeLists.txt
index d56a950ea4b..26fdfe9f82f 100644
--- a/Libraries/LibWeb/CMakeLists.txt
+++ b/Libraries/LibWeb/CMakeLists.txt
@@ -1190,6 +1190,9 @@ sync_rust_crate_ffi_headers(
)
add_dependencies(LibWeb libweb_rust-ffi-headers)
target_link_libraries(libweb_bindings_rust INTERFACE LibGfx LibGC LibUnicode)
+# The JavaScript tools link the LibJS runtime from this archive. It calls into LibGC and LibUnicode, so those must come
+# after the archive on the link line.
+target_link_libraries(libweb_bindings_rust_archive INTERFACE LibGC LibUnicode)
test_rust_crate(MANIFEST_PATH Bindings/Rust/Cargo.toml CRATE_NAME libweb_bindings_rust)
test_rust_crate(MANIFEST_PATH Rust/Cargo.toml CRATE_NAME libweb_rust)