Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libc
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
felixmoebius
libc
Commits
d811e27a
Unverified
Commit
d811e27a
authored
4 years ago
by
Yuki Okushi
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1788 from JohnTitor/ctest2
Use ctest2 to drop old dependencies
parents
0e8dd532
c6fb0f37
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ci/emscripten.sh
+4
-3
4 additions, 3 deletions
ci/emscripten.sh
libc-test/Cargo.toml
+1
-1
1 addition, 1 deletion
libc-test/Cargo.toml
libc-test/build.rs
+8
-4
8 additions, 4 deletions
libc-test/build.rs
with
13 additions
and
8 deletions
ci/emscripten.sh
+
4
−
3
View file @
d811e27a
...
...
@@ -2,6 +2,8 @@
set
-ex
EMSDK_VERSION
=
1.39.16
hide_output
()
{
set
+x
on_err
=
"
...
...
@@ -23,8 +25,8 @@ git clone https://github.com/emscripten-core/emsdk.git /emsdk-portable
cd
/emsdk-portable
# FIXME: switch to an upstream install once
# https://github.com/rust-lang/rust/pull/63649 lands
hide_output ./emsdk
install
1.39.12
./emsdk activate
1.39.12
hide_output ./emsdk
install
"
${
EMSDK_VERSION
}
"
./emsdk activate
"
${
EMSDK_VERSION
}
"
# Compile and cache libc
# shellcheck disable=SC1091
...
...
@@ -34,7 +36,6 @@ HOME=/emsdk-portable/ emcc a.c
rm
-f
a.
*
# Make emsdk usable by any user
cp
/root/.emscripten /emsdk-portable
chmod
a+rxw
-R
/emsdk-portable
# node 8 is required to run wasm
...
...
This diff is collapsed.
Click to expand it.
libc-test/Cargo.toml
+
1
−
1
View file @
d811e27a
...
...
@@ -11,7 +11,7 @@ default-features = false
[build-dependencies]
cc
=
"1.0"
# FIXME: Use fork ctest until the maintainer gets back.
ctest
=
{
git
=
"https://github.com/JohnTitor/ctest.git"
,
branch
=
"old-ctest"
}
ctest
2
=
"0.3"
[features]
default
=
[
"std"
]
...
...
This diff is collapsed.
Click to expand it.
libc-test/build.rs
+
8
−
4
View file @
d811e27a
#![deny(warnings)]
extern
crate
cc
;
extern
crate
ctest
;
extern
crate
ctest2
as
ctest
;
use
std
::
env
;
...
...
@@ -1567,9 +1567,13 @@ fn test_android(target: &str) {
// FIXME: Somehow we cannot find these fns on aarch64.
// https://github.com/rust-lang/libc/issues/1765
"lockf"
|
"preadv64"
|
"pwritev64"
|
"openpty"
|
"forkpty"
|
"login_tty"
|
"getifaddrs"
|
"freeifaddrs"
|
"sethostname"
|
"getgrgid_r"
|
"getgrnam_r"
if
aarch64
=>
true
,
"lockf"
|
"preadv64"
|
"pwritev64"
|
"openpty"
|
"forkpty"
|
"login_tty"
|
"getifaddrs"
|
"freeifaddrs"
|
"sethostname"
|
"getgrgid_r"
|
"getgrnam_r"
if
aarch64
=>
{
true
}
_
=>
false
,
}
...
...
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