Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cookbook
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
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
Wildan Mubarok
cookbook
Commits
2348e1cc
Commit
2348e1cc
authored
8 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Compile in release mode
parent
3729ffd7
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cook.sh
+2
-2
2 additions, 2 deletions
cook.sh
setup.sh
+7
-4
7 additions, 4 deletions
setup.sh
targets/x86_64-unknown-redox.json
+2
-1
2 additions, 1 deletion
targets/x86_64-unknown-redox.json
with
11 additions
and
7 deletions
cook.sh
+
2
−
2
View file @
2348e1cc
...
@@ -33,7 +33,7 @@ function op {
...
@@ -33,7 +33,7 @@ function op {
;;
;;
build
)
build
)
pushd
build
>
/dev/null
pushd
build
>
/dev/null
xargo build
--target
"
$TARGET
"
$CARGOFLAGS
xargo build
--target
"
$TARGET
"
--release
$CARGOFLAGS
popd
>
/dev/null
popd
>
/dev/null
;;
;;
clean
)
clean
)
...
@@ -49,7 +49,7 @@ function op {
...
@@ -49,7 +49,7 @@ function op {
recipe_stage ../stage
recipe_stage ../stage
fi
fi
#TODO xargo install --root "../stage" $CARGOFLAGS
#TODO xargo install --root "../stage" $CARGOFLAGS
bins
=
"
$(
find target/x86_64-unknown-redox/
debug
/
-maxdepth
1
-type
f
!
-name
'*.*'
)
"
bins
=
"
$(
find target/x86_64-unknown-redox/
release
/
-maxdepth
1
-type
f
!
-name
'*.*'
)
"
if
[
-n
"
$bins
"
]
if
[
-n
"
$bins
"
]
then
then
mkdir
-p
../stage/bin
mkdir
-p
../stage/bin
...
...
This diff is collapsed.
Click to expand it.
setup.sh
+
7
−
4
View file @
2348e1cc
...
@@ -3,16 +3,19 @@
...
@@ -3,16 +3,19 @@
set
-e
set
-e
echo
"Defaulting to rust nightly"
echo
"Defaulting to rust nightly"
rustup
defaul
t nightly
rustup
override
se
t
nightly
echo
"Downloading rust source"
echo
"Downloading rust source"
rustup component add rust-src
rustup component add rust-src
echo
"Installing xargo"
if
[
-z
"
$(
which xargo
)
"
]
cargo
install
-f
xargo
then
echo
"Installing xargo"
cargo
install
-f
xargo
fi
echo
"Building libstd"
echo
"Building libstd"
./cook.sh libstd unfetch
./cook.sh libstd unfetch
./cook.sh libstd fetch
./cook.sh libstd fetch
./cook.sh libstd build
./cook.sh libstd build
cp
recipes/libstd/build/target/x86_64-unknown-redox/
debug
/deps/
*
.rlib ~/.xargo/lib/rustlib/x86_64-unknown-redox/lib/
cp
recipes/libstd/build/target/x86_64-unknown-redox/
release
/deps/
*
.rlib ~/.xargo/lib/rustlib/x86_64-unknown-redox/lib/
echo
"cook.sh is ready to use"
echo
"cook.sh is ready to use"
This diff is collapsed.
Click to expand it.
targets/x86_64-unknown-redox.json
+
2
−
1
View file @
2348e1cc
...
@@ -9,7 +9,8 @@
...
@@ -9,7 +9,8 @@
"vendor"
:
"unknown"
,
"vendor"
:
"unknown"
,
"target-family"
:
"redox"
,
"target-family"
:
"redox"
,
"pre-link-args"
:
[
"-m64"
,
"-nostdlib"
,
"-static"
],
"pre-link-args"
:
[
"-m64"
,
"-nostdlib"
,
"-static"
],
"features"
:
"-sse3,-ssse3,-sse4.1,-sse4.2,-3dnow,-3dnowa,-avx,-avx2"
,
"post-link-args"
:
[
"build/userspace/libopenlibm.a"
],
"features"
:
""
,
"dynamic-linking"
:
false
,
"dynamic-linking"
:
false
,
"executables"
:
true
,
"executables"
:
true
,
"relocation-model"
:
"static"
,
"relocation-model"
:
"static"
,
...
...
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