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
e2905a88
Commit
e2905a88
authored
5 years ago
by
Yuki Okushi
Browse files
Options
Downloads
Patches
Plain Diff
Remove optimization workaround
parent
829e136c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ci/build.sh
+5
-13
5 additions, 13 deletions
ci/build.sh
with
5 additions
and
13 deletions
ci/build.sh
+
5
−
13
View file @
e2905a88
...
...
@@ -24,14 +24,6 @@ test_target() {
TARGET
=
"
${
2
}
"
NO_STD
=
"
${
3
}
"
opt
=
if
[
"
${
TARGET
}
"
=
"x86_64-unknown-linux-gnux32"
]
;
then
# FIXME: x86_64-unknown-linux-gnux32 fail to compile without
# --release
#
# See https://github.com/rust-lang/rust/issues/45417
opt
=
"--release"
fi
# FIXME: https://github.com/rust-lang/rust/issues/61174
if
[
"
${
TARGET
}
"
=
"sparcv9-sun-solaris"
]
||
[
"
${
TARGET
}
"
=
"x86_64-sun-solaris"
]
;
then
...
...
@@ -55,28 +47,28 @@ test_target() {
fi
# Test that libc builds without any default features (no libstd)
cargo
"+
${
RUST
}
"
"
${
BUILD_CMD
}
"
-vv
$opt
--no-default-features
--target
"
${
TARGET
}
"
cargo
"+
${
RUST
}
"
"
${
BUILD_CMD
}
"
-vv
--no-default-features
--target
"
${
TARGET
}
"
# Test that libc builds with default features (e.g. libstd)
# if the target supports libstd
if
[
"
$NO_STD
"
!=
"1"
]
;
then
cargo
"+
${
RUST
}
"
"
${
BUILD_CMD
}
"
-vv
$opt
--target
"
${
TARGET
}
"
cargo
"+
${
RUST
}
"
"
${
BUILD_CMD
}
"
-vv
--target
"
${
TARGET
}
"
fi
# Test that libc builds with the `extra_traits` feature
cargo
"+
${
RUST
}
"
"
${
BUILD_CMD
}
"
-vv
$opt
--no-default-features
--target
"
${
TARGET
}
"
\
cargo
"+
${
RUST
}
"
"
${
BUILD_CMD
}
"
-vv
--no-default-features
--target
"
${
TARGET
}
"
\
--features
extra_traits
# Test the 'const-extern-fn' feature on nightly
if
[
"
${
RUST
}
"
=
"nightly"
]
;
then
cargo
"+
${
RUST
}
"
"
${
BUILD_CMD
}
"
-vv
$opt
--no-default-features
--target
"
${
TARGET
}
"
\
cargo
"+
${
RUST
}
"
"
${
BUILD_CMD
}
"
-vv
--no-default-features
--target
"
${
TARGET
}
"
\
--features
const-extern-fn
fi
# Also test that it builds with `extra_traits` and default features:
if
[
"
$NO_STD
"
!=
"1"
]
;
then
cargo
"+
${
RUST
}
"
"
${
BUILD_CMD
}
"
-vv
$opt
--target
"
${
TARGET
}
"
\
cargo
"+
${
RUST
}
"
"
${
BUILD_CMD
}
"
-vv
--target
"
${
TARGET
}
"
\
--features
extra_traits
fi
}
...
...
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