Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initial ppc64le (OpenPOWER) support #904

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Common/3dParty/v8/v8_ppc64/add_clang_target.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
diff --git a/build/toolchain/linux/BUILD.gn b/build/toolchain/linux/BUILD.gn
index 5b7689f9f..9a70034f5 100644
--- a/build/toolchain/linux/BUILD.gn
+++ b/build/toolchain/linux/BUILD.gn
@@ -57,6 +57,15 @@ gcc_toolchain("arm") {
}
}

+clang_toolchain("clang_ppc64") {
+ # Output linker map files for binary size analysis.
+ enable_linker_map = true
+
+ toolchain_args = {
+ current_cpu = "ppc64"
+ current_os = "linux"
+ }
+}
clang_toolchain("clang_x86") {
# Output linker map files for binary size analysis.
enable_linker_map = true
8 changes: 8 additions & 0 deletions Common/base.pri
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ linux-g++:contains(QMAKE_HOST.arch, aarch64): {
CONFIG += core_linux_64
CONFIG += core_linux_host_arm64
}
linux-g++:contains(QMAKE_HOST.arch, ppc64le): {
message("linux-64")
CONFIG += core_linux_64
CONFIG += core_linux_host_ppc64le
}
!core_linux_64: {
message("linux-32")
CONFIG += core_linux_32
Expand Down Expand Up @@ -161,6 +166,9 @@ core_linux_host_arm64 {
message("build on arm64")
DEFINES += _ARM_ALIGN_
}
core_linux_host_ppc64le {
message("build on ppc64le")
}

core_mac {
DEFINES += LINUX _LINUX MAC _MAC
Expand Down