Revert of GN: support 32-bit x86 builds (patchset #6 id:100001 of https://codereview.chromium.org/2340463008/ )

Reason for revert:
https://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-Clang-x86-Debug-GN_Android/builds/304

Original issue's description:
> GN: support 32-bit x86 builds
>
> Take over Ubuntu -x86- bots.
>
> Note the change to Build-Win-MSVC-x86-Release-GN.json, which is not incidental.
> We'll want target_cpu="x86" there too.
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2340463008
>
> Committed: https://skia.googlesource.com/skia/+/1949386ae00485ae92dd5608a2614b9dee417542

TBR=jcgregorio@google.com,borenet@google.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:

Review-Url: https://codereview.chromium.org/2338173004
This commit is contained in:
mtklein 2016-09-15 11:18:55 -07:00 committed by Commit bot
parent b9c5137a1c
commit 56d5669095
7 changed files with 33 additions and 70 deletions

View File

@ -554,26 +554,22 @@ action("skia.h") {
] ]
} }
if (target_cpu == "x64") { executable("fiddle") {
# Our bots only have 64-bit libOSMesa installed. include_dirs = [ "$target_gen_dir" ]
# TODO: worth fixing? libs = []
executable("fiddle") { if (is_linux) {
include_dirs = [ "$target_gen_dir" ] libs += [ "OSMesa" ]
libs = []
if (is_linux) {
libs += [ "OSMesa" ]
}
sources = [
"src/images/SkForceLinking.cpp",
"tools/fiddle/draw.cpp",
"tools/fiddle/fiddle_main.cpp",
]
deps = [
":skia",
":skia.h",
]
} }
sources = [
"src/images/SkForceLinking.cpp",
"tools/fiddle/draw.cpp",
"tools/fiddle/fiddle_main.cpp",
]
deps = [
":skia",
":skia.h",
]
} }
# Targets guarded by skia_enable_tools may use //third_party freely. # Targets guarded by skia_enable_tools may use //third_party freely.

View File

@ -39,7 +39,6 @@ config("debug_symbols") {
} }
config("default") { config("default") {
asmflags = []
cflags = [ cflags = [
"-O1", "-O1",
"-fstrict-aliasing", "-fstrict-aliasing",
@ -78,14 +77,6 @@ config("default") {
"-march=mips32r2", "-march=mips32r2",
"-mdspr2", "-mdspr2",
] ]
} else if (current_cpu == "x86") {
asmflags += [ "-m32" ]
cflags += [
"-m32",
"-msse2",
"-mfpmath=sse",
]
ldflags += [ "-m32" ]
} }
if (is_android) { if (is_android) {

View File

@ -8,15 +8,12 @@ import default_flavor
class GNFlavorUtils(default_flavor.DefaultFlavorUtils): class GNFlavorUtils(default_flavor.DefaultFlavorUtils):
def supported(self): def supported(self):
extra_config = self.m.vars.builder_cfg.get('extra_config', '') extra_config = self.m.vars.builder_cfg.get('extra_config', '')
os = self.m.vars.builder_cfg.get('os', '')
target_arch = self.m.vars.builder_cfg.get('target_arch', '')
return any([ return any([
'SAN' in extra_config, 'SAN' in extra_config,
extra_config == 'Fast', extra_config == 'Fast',
extra_config == 'GN', extra_config == 'GN',
extra_config.startswith('SK'), extra_config.startswith('SK')
os == 'Ubuntu' and target_arch == 'x86',
]) ])
def _run(self, title, cmd, env=None, infra_step=False): def _run(self, title, cmd, env=None, infra_step=False):
@ -32,7 +29,6 @@ class GNFlavorUtils(default_flavor.DefaultFlavorUtils):
configuration = self.m.vars.builder_cfg.get('configuration', '') configuration = self.m.vars.builder_cfg.get('configuration', '')
extra_config = self.m.vars.builder_cfg.get('extra_config', '') extra_config = self.m.vars.builder_cfg.get('extra_config', '')
os = self.m.vars.builder_cfg.get('os', '') os = self.m.vars.builder_cfg.get('os', '')
target_arch = self.m.vars.builder_cfg.get('target_arch', '')
clang_linux = str(self.m.vars.slave_dir.join('clang_linux')) clang_linux = str(self.m.vars.slave_dir.join('clang_linux'))
@ -69,7 +65,6 @@ class GNFlavorUtils(default_flavor.DefaultFlavorUtils):
'extra_cflags': ' '.join(extra_cflags), 'extra_cflags': ' '.join(extra_cflags),
'extra_ldflags': ' '.join(extra_ldflags), 'extra_ldflags': ' '.join(extra_ldflags),
'sanitize': extra_config if 'SAN' in extra_config else '', 'sanitize': extra_config if 'SAN' in extra_config else '',
'target_cpu': 'x86' if target_arch == 'x86' else '',
}.iteritems(): }.iteritems():
if v: if v:
args[k] = '"%s"' % v args[k] = '"%s"' % v

View File

@ -121,38 +121,19 @@
}, },
{ {
"cmd": [ "cmd": [
"[CUSTOM_/_B_WORK]/skia/bin/fetch-gn" "make",
"most"
], ],
"cwd": "[CUSTOM_/_B_WORK]/skia", "cwd": "[CUSTOM_/_B_WORK]/skia",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]" "BUILDTYPE": "Debug",
"CHROME_HEADLESS": "1",
"CHROME_PATH": "[SLAVE_BUILD]/src",
"GYP_DEFINES": "skia_arch_type=x86 skia_warnings_as_errors=1",
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]",
"SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86-Debug"
}, },
"name": "fetch-gn" "name": "build most"
},
{
"cmd": [
"gn",
"gen",
"[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86-Debug/Debug",
"--args=cc=\"gcc\" cxx=\"g++\" target_cpu=\"x86\""
],
"cwd": "[CUSTOM_/_B_WORK]/skia",
"env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]"
},
"name": "gn gen"
},
{
"cmd": [
"ninja",
"-C",
"[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86-Debug/Debug"
],
"cwd": "[CUSTOM_/_B_WORK]/skia",
"env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]"
},
"name": "ninja"
}, },
{ {
"cmd": [ "cmd": [

View File

@ -134,7 +134,7 @@
"gn", "gn",
"gen", "gen",
"[CUSTOM_C:\\_B_WORK]\\skia\\out\\Build-Win-MSVC-x86-Release-GN\\Release", "[CUSTOM_C:\\_B_WORK]\\skia\\out\\Build-Win-MSVC-x86-Release-GN\\Release",
"--args=is_debug=false target_cpu=\"x86\"" "--args=is_debug=false"
], ],
"cwd": "[CUSTOM_C:\\_B_WORK]\\skia", "cwd": "[CUSTOM_C:\\_B_WORK]\\skia",
"env": { "env": {

View File

@ -35,7 +35,7 @@
"BUILDTYPE": "Debug", "BUILDTYPE": "Debug",
"CHROME_HEADLESS": "1", "CHROME_HEADLESS": "1",
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]", "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
"SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Debug" "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86-Debug"
}, },
"name": "gclient setup" "name": "gclient setup"
}, },
@ -64,7 +64,7 @@
"BUILDTYPE": "Debug", "BUILDTYPE": "Debug",
"CHROME_HEADLESS": "1", "CHROME_HEADLESS": "1",
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]", "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]",
"SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Debug" "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86-Debug"
}, },
"name": "gclient sync", "name": "gclient sync",
"~followup_annotations": [ "~followup_annotations": [
@ -95,7 +95,7 @@
"BUILDTYPE": "Debug", "BUILDTYPE": "Debug",
"CHROME_HEADLESS": "1", "CHROME_HEADLESS": "1",
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]", "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]",
"SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Debug" "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86-Debug"
}, },
"name": "gclient recurse (git config user.name)" "name": "gclient recurse (git config user.name)"
}, },
@ -115,7 +115,7 @@
"BUILDTYPE": "Debug", "BUILDTYPE": "Debug",
"CHROME_HEADLESS": "1", "CHROME_HEADLESS": "1",
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]", "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]",
"SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Debug" "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86-Debug"
}, },
"name": "gclient recurse (git config user.email)" "name": "gclient recurse (git config user.email)"
}, },
@ -129,9 +129,9 @@
"BUILDTYPE": "Debug", "BUILDTYPE": "Debug",
"CHROME_HEADLESS": "1", "CHROME_HEADLESS": "1",
"CHROME_PATH": "[SLAVE_BUILD]/src", "CHROME_PATH": "[SLAVE_BUILD]/src",
"GYP_DEFINES": "skia_arch_type=x86_64 skia_warnings_as_errors=1", "GYP_DEFINES": "skia_arch_type=x86 skia_warnings_as_errors=1",
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]", "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]",
"SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Debug" "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86-Debug"
}, },
"name": "build most", "name": "build most",
"~followup_annotations": [ "~followup_annotations": [

View File

@ -265,7 +265,7 @@ def GenTests(api):
mastername = 'client.skia.compile' mastername = 'client.skia.compile'
slavename = 'skiabot-win-compile-000' slavename = 'skiabot-win-compile-000'
buildername = 'Build-Ubuntu-GCC-x86_64-Debug' buildername = 'Build-Ubuntu-GCC-x86-Debug'
yield ( yield (
api.test('failed_compile') + api.test('failed_compile') +
api.properties(buildername=buildername, api.properties(buildername=buildername,