Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kernel
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
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
ACS
Public
HermitOS
kernel
Commits
5f81570e
Commit
5f81570e
authored
2 years ago
by
Martin Kröning
Browse files
Options
Downloads
Patches
Plain Diff
aach64 target: Align to aarch64-unknown-none-softfloat
parent
167c56bd
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
targets/aarch64-unknown-none-hermitkernel.json
+2
-3
2 additions, 3 deletions
targets/aarch64-unknown-none-hermitkernel.json
xtask/src/main.rs
+12
-2
12 additions, 2 deletions
xtask/src/main.rs
with
14 additions
and
5 deletions
targets/aarch64-unknown-none-hermitkernel.json
+
2
−
3
View file @
5f81570e
...
...
@@ -7,10 +7,9 @@
"features"
:
"+strict-align,-neon,-fp-armv8"
,
"linker"
:
"rust-lld"
,
"linker-flavor"
:
"ld.lld"
,
"llvm-target"
:
"aarch64-unknown-none
-elf
"
,
"llvm-target"
:
"aarch64-unknown-none"
,
"max-atomic-width"
:
128
,
"panic-strategy"
:
"abort"
,
"position-independent-executables"
:
true
,
"static-position-independent-executables"
:
true
,
"relocation-model"
:
"static"
,
"target-pointer-width"
:
"64"
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
xtask/src/main.rs
+
12
−
2
View file @
5f81570e
...
...
@@ -8,7 +8,7 @@ use std::{
path
::{
Path
,
PathBuf
},
};
use
anyhow
::{
anyhow
,
Result
};
use
anyhow
::{
anyhow
,
bail
,
Result
};
use
goblin
::{
archive
::
Archive
,
elf64
::
header
};
use
llvm_tools
::
LlvmTools
;
use
xshell
::{
cmd
,
Shell
};
...
...
@@ -71,15 +71,25 @@ impl flags::Build {
Err
(
VarError
::
NotPresent
)
=>
None
,
Err
(
err
)
=>
return
Err
(
err
.into
()),
};
let
mut
rustflags
=
outer_rustflags
.as_deref
()
.map
(|
s
|
vec!
[
s
])
.unwrap_or_default
();
rustflags
.extend
(
RUSTFLAGS
);
if
self
.instrument_mcount
{
rustflags
.push
(
"-Zinstrument-mcount"
);
}
match
self
.arch
.as_str
()
{
"x86_64"
=>
{}
"aarch64"
=>
{
rustflags
.push
(
"-Crelocation-model=pic"
);
}
arch
=>
bail!
(
"Unsupported arch: {arch}"
),
}
Ok
(
rustflags
.join
(
"
\x1f
"
))
}
...
...
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