Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
relibc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Limkilde Svendsen
relibc
Commits
d337caaf
Commit
d337caaf
authored
7 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Remove std from outputted libc.a
parent
d20e3f69
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
Cargo.toml
+10
-0
10 additions, 0 deletions
Cargo.toml
fcntl/Cargo.toml
+1
-1
1 addition, 1 deletion
fcntl/Cargo.toml
fcntl/build.rs
+5
-5
5 additions, 5 deletions
fcntl/build.rs
unistd/Cargo.toml
+1
-1
1 addition, 1 deletion
unistd/Cargo.toml
unistd/build.rs
+5
-5
5 additions, 5 deletions
unistd/build.rs
with
22 additions
and
12 deletions
Cargo.toml
+
10
−
0
View file @
d337caaf
...
...
@@ -16,3 +16,13 @@ members = [
[dependencies]
fcntl
=
{
path
=
"fcntl"
}
unistd
=
{
path
=
"unistd"
}
[profile.dev]
incremental
=
false
lto
=
true
panic
=
"abort"
[profile.release]
incremental
=
false
lto
=
true
panic
=
"abort"
This diff is collapsed.
Click to expand it.
fcntl/Cargo.toml
+
1
−
1
View file @
d337caaf
...
...
@@ -8,4 +8,4 @@ build = "build.rs"
cbindgen
=
"0.5"
[dependencies]
libc
=
"0.2"
libc
=
{
version
=
"0.2"
,
default-features
=
false
}
This diff is collapsed.
Click to expand it.
fcntl/build.rs
+
5
−
5
View file @
d337caaf
extern
crate
cbindgen
;
use
std
::
env
;
use
std
::
{
env
,
fs
}
;
fn
main
()
{
let
crate_dir
=
env
::
var
(
"CARGO_MANIFEST_DIR"
)
.
unwrap
(
);
let
crate_dir
=
env
::
var
(
"CARGO_MANIFEST_DIR"
)
.
expect
(
"CARGO_MANIFEST_DIR not set"
);
fs
::
create_dir_all
(
"../target/include"
)
.expect
(
"failed to create include directory"
);
cbindgen
::
generate
(
crate_dir
)
.expect
(
"
Unab
le to generate bindings"
)
.write_to_file
(
"../target/fcntl.h"
);
.expect
(
"
fai
le
d
to generate bindings"
)
.write_to_file
(
"../target/
include/
fcntl.h"
);
}
This diff is collapsed.
Click to expand it.
unistd/Cargo.toml
+
1
−
1
View file @
d337caaf
...
...
@@ -8,4 +8,4 @@ build = "build.rs"
cbindgen
=
"0.5"
[dependencies]
libc
=
"0.2"
libc
=
{
version
=
"0.2"
,
default-features
=
false
}
This diff is collapsed.
Click to expand it.
unistd/build.rs
+
5
−
5
View file @
d337caaf
extern
crate
cbindgen
;
use
std
::
env
;
use
std
::
{
env
,
fs
}
;
fn
main
()
{
let
crate_dir
=
env
::
var
(
"CARGO_MANIFEST_DIR"
)
.
unwrap
(
);
let
crate_dir
=
env
::
var
(
"CARGO_MANIFEST_DIR"
)
.
expect
(
"CARGO_MANIFEST_DIR not set"
);
fs
::
create_dir_all
(
"../target/include"
)
.expect
(
"failed to create include directory"
);
cbindgen
::
generate
(
crate_dir
)
.expect
(
"
Unab
le to generate bindings"
)
.write_to_file
(
"../target/unistd.h"
);
.expect
(
"
fai
le
d
to generate bindings"
)
.write_to_file
(
"../target/
include/
unistd.h"
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment