Closed Bug 541532 Opened 15 years ago Closed 15 years ago

pass native library names through to 2-level symbol imports in backend

Categories

(Servo Graveyard :: Rust, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: graydon, Unassigned)

Details

Currently the native function system only imports symbols from 2 places: the platform C library (if the nabi convention is CONV_cdecl) and the rust runtime library (if the nabi convention is CONV_rust). This is a complete hack: the proper thing to do is support naming libraries in the native fn decls, at the crate level, and passing those libraries through to the backend where they get emitted as linker 2-level (library:symbol) imports. Will require modifying Ast.native_fn and the parser, and some (relatively harmless) bits of the later stages (eg. Trans.trans_native_fn).
Fixed in 99a45d6a1ca6.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Group: servo
You need to log in before you can comment on or make changes to this bug.