Skip to content

Commit 4dfa9fe

Browse files
committed
fix: Build issues with profiler=1 on macOS and Android(TM) platforms.
Resolves: COMPMID-8344 Change-Id: Idd5e02ad4455c94edda2ab791c6cad80c47f689c Signed-off-by: Walid Ben Romdhane <[email protected]> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/15220 Reviewed-by: Dongsung Kim <[email protected]> Benchmark: Arm Jenkins <[email protected]> Tested-by: Arm Jenkins <[email protected]>
1 parent 20ac1b4 commit 4dfa9fe

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

SConstruct

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -256,29 +256,29 @@ if not 'windows' in env['os']:
256256
env.Append(CXXFLAGS = ['-Wall','-std=c++14', '-pedantic' ])
257257

258258
if env['profile']:
259-
env.Append(CXXFLAGS = ['-std=c++17', '-DACL_PROFILE_ENABLE'])
259+
env.Append(CXXFLAGS = ['-DACL_PROFILE_ENABLE'])
260260
env.Append(CXXFLAGS = ['-DACL_PROFILE_LEVEL=%d' % int(env['profile_level'])])
261261
env.Append(CXXFLAGS = ['-DACL_PROFILE_BACKEND=%s' % env['profile_backend']])
262262
env.Append(CXXFLAGS = ['-DACL_PROFILE_MODE=%s' % env['profile_mode']])
263263
env.Append(CXXFLAGS = ['-DACL_ACL_PROFILE_SIZE_KB=%d' % int(env['profile_size'])])
264264
if env['profile_backend'] == 'perfetto':
265-
env.Append(CXXFLAGS = [
266-
'-std=c++17',
267-
'-Wno-switch-default',
268-
'-Wno-effc++',
269-
'-Wno-strict-overflow',
270-
'-Wno-noexcept',
271-
'-Wno-error=noexcept',
272-
'-Wno-error=strict-aliasing',
273-
'-Wno-error=class-memaccess',
274-
'-Wno-error=maybe-uninitialized',
275-
'-Wno-format-nonliteral',
276-
'-Wno-error=redundant-move',
277-
'-Wno-error=logical-op'])
265+
env.Append(CXXFLAGS = ['-std=c++17', '-Wno-switch-default'])
266+
if env['os'] == 'android':
267+
env.Append(LINKFLAGS = ['-llog'])
268+
elif env['os'] == 'linux':
269+
env.Append(CXXFLAGS = [
270+
'-Wno-effc++',
271+
'-Wno-strict-overflow',
272+
'-Wno-noexcept',
273+
'-Wno-error=noexcept',
274+
'-Wno-error=strict-aliasing',
275+
'-Wno-error=class-memaccess',
276+
'-Wno-error=maybe-uninitialized',
277+
'-Wno-format-nonliteral',
278+
'-Wno-error=redundant-move',
279+
'-Wno-error=logical-op'])
278280
if env['opencl']:
279281
env.Append(CXXFLAGS = ['-DARM_COMPUTE_CL'])
280-
if env['os'] == 'android':
281-
env.Append(LINKFLAGS = ['-llog'])
282282

283283
cpp_tool = {'linux': 'g++', 'android' : 'clang++',
284284
'tizen': 'g++', 'macos':'clang++',

0 commit comments

Comments
 (0)