Skip to content

Commit 6e34e65

Browse files
committed
Produce dylib and rlib
1 parent eb5dd25 commit 6e34e65

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUST_SRC=$(shell find $(VPATH)/. -type f -name '*.rs')
1313
all: libcssparser.dummy
1414

1515
libcssparser.dummy: lib.rs $(RUST_SRC)
16-
$(RUSTC) $(RUSTFLAGS) $< --crate-type=lib --out-dir .
16+
$(RUSTC) $(RUSTFLAGS) $< --out-dir .
1717
touch $@
1818

1919
cssparser-test: lib.rs $(RUST_SRC)

lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
#[crate_id = "github.com/mozilla-servo/rust-cssparser#cssparser:0.1"];
66
#[feature(globs, macro_rules)];
7+
#[crate_type = "lib"];
8+
#[crate_type = "dylib"];
9+
#[crate_type = "rlib"];
710

811
extern crate extra;
912
extern crate encoding; // https://github.com/lifthrasiir/rust-encoding

0 commit comments

Comments
 (0)