1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
--- a/cef/tools/gn_args.py
+++ b/cef/tools/gn_args.py
@@ -431,14 +431,6 @@
'x86', 'x64', 'arm',
'arm64'), 'target_cpu must be "x86", "x64", "arm" or "arm64"'
- if platform == 'linux':
- if target_cpu == 'x86':
- assert use_sysroot, 'target_cpu="x86" requires use_sysroot=true'
- elif target_cpu == 'arm':
- assert use_sysroot, 'target_cpu="arm" requires use_sysroot=true'
- elif target_cpu == 'arm64':
- assert use_sysroot, 'target_cpu="arm64" requires use_sysroot=true'
-
# ASAN requires Release builds.
if is_asan:
assert not is_debug, "is_asan=true requires is_debug=false"
@@ -658,7 +650,7 @@
msg('Not generating %s configuration due to missing sysroot directory'
% cpu)
else:
- supported_cpus = ['x64']
+ supported_cpus = [GetArgValue(args, 'target_cpu')]
elif platform in ('windows', 'mac'):
if machine == 'amd64' or os.environ.get('CEF_ENABLE_AMD64', '') == '1':
supported_cpus.append('x64')
|