Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds AArch64 knowledge to: * configure, * make files, * sources, * tests, and * documentation.
- Loading branch information
1 parent
fc2ba13
commit 6e5fb8b
Showing
44 changed files
with
509 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# aarch64-unknown-linux-gnu configuration | ||
CROSS_PREFIX_aarch64-unknown-linux-gnu=aarch64-linux-gnu- | ||
CC_aarch64-unknown-linux-gnu=gcc | ||
CXX_aarch64-unknown-linux-gnu=g++ | ||
CPP_aarch64-unknown-linux-gnu=gcc -E | ||
AR_aarch64-unknown-linux-gnu=ar | ||
CFG_LIB_NAME_aarch64-unknown-linux-gnu=lib$(1).so | ||
CFG_STATIC_LIB_NAME_aarch64-unknown-linux-gnu=lib$(1).a | ||
CFG_LIB_GLOB_aarch64-unknown-linux-gnu=lib$(1)-*.so | ||
CFG_LIB_DSYM_GLOB_aarch64-unknown-linux-gnu=lib$(1)-*.dylib.dSYM | ||
CFG_JEMALLOC_CFLAGS_aarch64-unknown-linux-gnu := -D__aarch64__ $(CFLAGS) | ||
CFG_GCCISH_CFLAGS_aarch64-unknown-linux-gnu := -Wall -g -fPIC -D__aarch64__ $(CFLAGS) | ||
CFG_GCCISH_CXXFLAGS_aarch64-unknown-linux-gnu := -fno-rtti $(CXXFLAGS) | ||
CFG_GCCISH_LINK_FLAGS_aarch64-unknown-linux-gnu := -shared -fPIC -g | ||
CFG_GCCISH_DEF_FLAG_aarch64-unknown-linux-gnu := -Wl,--export-dynamic,--dynamic-list= | ||
CFG_GCCISH_PRE_LIB_FLAGS_aarch64-unknown-linux-gnu := -Wl,-whole-archive | ||
CFG_GCCISH_POST_LIB_FLAGS_aarch64-unknown-linux-gnu := -Wl,-no-whole-archive | ||
CFG_DEF_SUFFIX_aarch64-unknown-linux-gnu := .linux.def | ||
CFG_LLC_FLAGS_aarch64-unknown-linux-gnu := | ||
CFG_INSTALL_NAME_aarch64-unknown-linux-gnu = | ||
CFG_EXE_SUFFIX_aarch64-unknown-linux-gnu := | ||
CFG_WINDOWSY_aarch64-unknown-linux-gnu := | ||
CFG_UNIXY_aarch64-unknown-linux-gnu := 1 | ||
CFG_PATH_MUNGE_aarch64-unknown-linux-gnu := true | ||
CFG_LDPATH_aarch64-unknown-linux-gnu := | ||
CFG_RUN_aarch64-unknown-linux-gnu=$(2) | ||
CFG_RUN_TARG_aarch64-unknown-linux-gnu=$(call CFG_RUN_aarch64-unknown-linux-gnu,,$(2)) | ||
RUSTC_FLAGS_aarch64-unknown-linux-gnu := | ||
RUSTC_CROSS_FLAGS_aarch64-unknown-linux-gnu := | ||
CFG_GNU_TRIPLE_aarch64-unknown-linux-gnu := aarch64-unknown-linux-gnu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT | ||
// file at the top-level directory of this distribution and at | ||
// http://rust-lang.org/COPYRIGHT. | ||
// | ||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | ||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | ||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | ||
// option. This file may not be copied, modified, or distributed | ||
// except according to those terms. | ||
|
||
use target::Target; | ||
|
||
pub fn target() -> Target { | ||
let base = super::linux_base::opts(); | ||
Target { | ||
data_layout: "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-\ | ||
f32:32:32-f64:64:64-v64:64:64-v128:128:128-a:0:64-\ | ||
n32:64-S128".to_string(), | ||
llvm_target: "aarch64-unknown-linux-gnu".to_string(), | ||
target_endian: "little".to_string(), | ||
target_word_size: "64".to_string(), | ||
arch: "aarch64".to_string(), | ||
target_os: "linux".to_string(), | ||
options: base, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
6e5fb8b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from alexcrichton
at akosthekiss@6e5fb8b
6e5fb8b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging akiss77/rust/aarch64-configure = 6e5fb8b into auto
6e5fb8b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
status: {"merge_sha": "496dc4eae7de9d14cd49511a9acfbf5f11ae6c3f"}
6e5fb8b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
akiss77/rust/aarch64-configure = 6e5fb8b merged ok, testing candidate = 496dc4e
6e5fb8b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/2998
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/2992
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/2993
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/2984
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/2984
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/2987
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/2980
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/2975
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/2651
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/2649
success: http://buildbot.rust-lang.org/builders/auto-win-64-opt/builds/1488
success: http://buildbot.rust-lang.org/builders/auto-win-64-nopt-t/builds/1479
6e5fb8b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = 496dc4e
6e5fb8b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = 496dc4e