22
33import os
44
5- SUPPORTED_PLATFORMS = '^android-(armv7|x86)$'
5+ SUPPORTED_PLATFORMS = '^android-(armv7|x86|x86_64 )$'
66
77def unpack_rule (source , from_rule ):
88 genrule (
@@ -26,19 +26,6 @@ WTF_EXPORTED_PREPROCESSOR_FLAGS = [
2626 '-DENABLE_GLOBAL_FASTMALLOC_NEW=0' ,
2727]
2828
29- # Dirty hack, StdLibExtras.h assumes incorrectly that is_trivially_destructible
30- # have been added in 4.8.1 version while it was added in 4.8.0. We emulate PATCH
31- # version to be 1 so that StdLibExtra.h doesn't try to declare
32- # is_trivially_destructible
33- # Except from this single place JSC code doesn't check for 4.8.1 anywhere else
34- WTF_EXPORTED_PREPROCESSOR_FLAGS .extend ([
35- '-U__GNUC_PATCHLEVEL__' ,
36- '-D__GNUC_PATCHLEVEL__=1' ,
37- '-DPTHREAD_KEYS_MAX=1024' ,
38- '-DINTPTR_MAX=LONG_MAX' ,
39- '-Dlog2(x)=(log(x)/log(2.0))' ,
40- ])
41-
4229cxx_library (
4330 name = 'wtfassertions' ,
4431 force_static = True ,
@@ -165,6 +152,7 @@ cxx_library(
165152 supported_platforms_regex = SUPPORTED_PLATFORMS ,
166153 header_namespace = '' ,
167154 headers = subdir_glob ([
155+ ('WTF' , '*.h' ),
168156 ('WTF/wtf' , '*.h' ),
169157 ('' , 'extra_headers/*.h' ),
170158 ]),
@@ -936,7 +924,7 @@ SOURCES = glob([
936924 'JavaScriptCore/*.asm' ,
937925])
938926SOURCES .append (':InitBytecodes.asm' )
939- for platform in ('android-armv7' , 'android-x86' ):
927+ for platform in ('android-armv7' , 'android-x86' , 'android-x86_64' ):
940928 source = 'LLIntAssembly.{0}.h' .format (platform )
941929 genrule (
942930 name = source ,
0 commit comments