File tree 4 files changed +14
-12
lines changed 4 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 42
42
- run : rm openbsd-src/sys/sys/sysctl.h
43
43
- run : rm openbsd-src/lib/libc/stdlib/malloc.c
44
44
45
+ - run : mv openbsd-src/sys/* include
46
+ - run : mv openbsd-src/include/* include
47
+
45
48
- run : rm code.tar.gz
46
49
- run : cargo build --target wasm32-unknown-unknown
47
50
70
73
- run : rm openbsd-src/sys/sys/sysctl.h
71
74
- run : rm openbsd-src/lib/libc/stdlib/malloc.c
72
75
76
+ - run : mv openbsd-src/sys/* include
77
+ - run : mv openbsd-src/include/* include
78
+
73
79
- run : rm code.tar.gz
74
80
75
81
- run : cargo publish --allow-dirty --token ${{ secrets.CARGO_TOKEN }}
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
description = " The parts of OpenBSD libc that make sense on wasm32-unknown-unknown."
3
3
edition = " 2018"
4
+ keywords = [" libc" , " wasm32-unknown-unknown" ]
4
5
license = " BSD-3-Clause AND ISC AND MIT"
6
+ links = " wasm32-unknown-unknown-openbsd-libc"
5
7
name = " wasm32-unknown-unknown-openbsd-libc"
6
8
repository = " https://github.com/trevyn/wasm32-unknown-unknown-openbsd-libc"
7
9
version = " 0.1.0"
Original file line number Diff line number Diff line change @@ -26,8 +26,6 @@ fn main() {
26
26
"stdlib/heapsort.c" ,
27
27
"stdlib/qsort.c" ,
28
28
"string/bcmp.c" ,
29
- "string/bcmp.c" ,
30
- "string/bcmp.c" ,
31
29
"string/bcopy.c" ,
32
30
"string/bzero.c" ,
33
31
"string/explicit_bzero.c" ,
@@ -84,11 +82,14 @@ fn main() {
84
82
. collect :: < Vec < _ > > ( ) ;
85
83
86
84
cc:: Build :: new ( )
87
- . include ( "openbsd-src/sys" )
88
- . include ( "openbsd-src/include" )
89
85
. include ( "include" )
90
86
. files ( sources)
91
87
. file ( "src/errno.c" )
92
88
. flag ( "-w" )
93
89
. compile ( "wasm32-unknown-unknown-openbsd-libc" ) ;
90
+
91
+ println ! (
92
+ "cargo:include={}/include" ,
93
+ env:: var( "CARGO_MANIFEST_DIR" ) . unwrap( )
94
+ ) ;
94
95
}
Original file line number Diff line number Diff line change 1
- pub fn includes ( ) -> Vec < impl AsRef < std:: path:: Path > > {
2
- let dir = env ! ( "CARGO_MANIFEST_DIR" ) ;
3
- vec ! [
4
- format!( "{}/openbsd-src/sys" , dir) ,
5
- format!( "{}/openbsd-src/include" , dir) ,
6
- format!( "{}/include" , dir) ,
7
- ]
8
- }
1
+
You can’t perform that action at this time.
0 commit comments