This repository has been archived by the owner on Mar 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Add x86_64 support #19
Open
leeight
wants to merge
2
commits into
facebookarchive:master
Choose a base branch
from
leeight:x86_64
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
import os | ||
|
||
SUPPORTED_PLATFORMS = '^android-(armv7|x86)$' | ||
SUPPORTED_PLATFORMS = '^android-(armv7|arm64|x86|x86_64)$' | ||
|
||
def unpack_rule(source, from_rule): | ||
genrule( | ||
|
@@ -26,19 +26,6 @@ WTF_EXPORTED_PREPROCESSOR_FLAGS = [ | |
'-DENABLE_GLOBAL_FASTMALLOC_NEW=0', | ||
] | ||
|
||
# Dirty hack, StdLibExtras.h assumes incorrectly that is_trivially_destructible | ||
# have been added in 4.8.1 version while it was added in 4.8.0. We emulate PATCH | ||
# version to be 1 so that StdLibExtra.h doesn't try to declare | ||
# is_trivially_destructible | ||
# Except from this single place JSC code doesn't check for 4.8.1 anywhere else | ||
WTF_EXPORTED_PREPROCESSOR_FLAGS.extend([ | ||
'-U__GNUC_PATCHLEVEL__', | ||
'-D__GNUC_PATCHLEVEL__=1', | ||
'-DPTHREAD_KEYS_MAX=1024', | ||
'-DINTPTR_MAX=LONG_MAX', | ||
'-Dlog2(x)=(log(x)/log(2.0))', | ||
]) | ||
|
||
cxx_library( | ||
name = 'wtfassertions', | ||
force_static = True, | ||
|
@@ -165,6 +152,7 @@ cxx_library( | |
supported_platforms_regex = SUPPORTED_PLATFORMS, | ||
header_namespace = '', | ||
headers = subdir_glob([ | ||
('WTF', '*.h'), | ||
('WTF/wtf', '*.h'), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this needed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. encounter an error, missing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
('', 'extra_headers/*.h'), | ||
]), | ||
|
@@ -936,7 +924,7 @@ SOURCES = glob([ | |
'JavaScriptCore/*.asm', | ||
]) | ||
SOURCES.append(':InitBytecodes.asm') | ||
for platform in ('android-armv7', 'android-x86'): | ||
for platform in ('android-armv7', 'android-arm64', 'android-x86', 'android-x86_64'): | ||
source = 'LLIntAssembly.{0}.h'.format(platform) | ||
genrule( | ||
name = source, | ||
|
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Should this be 16 to support Android 4.1?
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.
I tried different platforms, it looks like only
android-21
can work, but i can figure out the reason.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.
OK thanks, the JSC AAR file needs to work with API 16 since React Native supports API 16.
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.
Probably because
android-21
was the first platform that contained thex86_64
andarm64
ndk ABI.