mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
Delete the old C++ ECMA-262 parser, optimizer, and matcher now that all in-tree users compile and execute through `ECMAScriptRegex`. Stop building the legacy engine, remove its source files and the POSIX-only fuzzers that depended on it, and update the remaining LibRegex tests to target the Rust-backed facade instead of the deleted implementation. Clean up the last includes, comments, and helper paths that only existed to support the old backend. After this commit LibRegex has a single ECMAScript engine in-tree, eliminating duplicated maintenance and unifying future regex work.
16 lines
479 B
CMake
16 lines
479 B
CMake
if (NOT ENABLE_RUST)
|
|
message(FATAL_ERROR "LibRegex requires ENABLE_RUST; the legacy C++ regex engine has been removed")
|
|
endif()
|
|
|
|
set(SOURCES
|
|
ECMAScriptRegex.cpp
|
|
RustRegex.cpp
|
|
)
|
|
|
|
ladybird_lib(LibRegex regex EXPLICIT_SYMBOL_EXPORT)
|
|
target_link_libraries(LibRegex PRIVATE LibUnicode)
|
|
|
|
import_rust_crate(MANIFEST_PATH Rust/Cargo.toml CRATE_NAME libregex_rust)
|
|
target_link_libraries(LibRegex PRIVATE libregex_rust)
|
|
target_compile_definitions(LibRegex PRIVATE ENABLE_RUST)
|