Add workarounds to build jsc
This commit is contained in:
Родитель
de3298fe8e
Коммит
2027308e09
|
@ -93,7 +93,14 @@ class Nitro(Engine):
|
||||||
return env
|
return env
|
||||||
|
|
||||||
def build(self):
|
def build(self):
|
||||||
|
# Hack 1: Remove reporting errors for warnings that currently are present.
|
||||||
|
Run(["sed","-i.bac","s/-Wimplicit-fallthrough//","Source/JavaScriptCore/Configurations/Base.xcconfig"])
|
||||||
|
Run(["sed","-i.bac","s/-Wglobal-constructors//","Source/JavaScriptCore/Configurations/Base.xcconfig"])
|
||||||
|
|
||||||
with utils.FolderChanger(os.path.join('Tools', 'Scripts')):
|
with utils.FolderChanger(os.path.join('Tools', 'Scripts')):
|
||||||
|
# Hack 2: This check fails currently. Disable checking to still have a build.
|
||||||
|
os.rename("check-for-weak-vtables-and-externals", "check-for-weak-vtables-and-externals2");
|
||||||
|
|
||||||
if self.cpu == 'x86':
|
if self.cpu == 'x86':
|
||||||
args = ['/usr/bin/perl', 'build-jsc', '--32-bit']
|
args = ['/usr/bin/perl', 'build-jsc', '--32-bit']
|
||||||
else:
|
else:
|
||||||
|
@ -101,6 +108,10 @@ class Nitro(Engine):
|
||||||
args.extend(self.extra)
|
args.extend(self.extra)
|
||||||
Run(args)
|
Run(args)
|
||||||
|
|
||||||
|
os.rename("check-for-weak-vtables-and-externals2", "check-for-weak-vtables-and-externals");
|
||||||
|
|
||||||
|
Run(["svn","revert","Source/JavaScriptCore/Configurations/Base.xcconfig"])
|
||||||
|
|
||||||
def shell(self):
|
def shell(self):
|
||||||
return os.path.join('WebKitBuild', 'Release', 'jsc')
|
return os.path.join('WebKitBuild', 'Release', 'jsc')
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче