Recommended version and options for clang to compile skia

89 views
Skip to first unread message

Sherlock Doyle

unread,
Sep 26, 2022, 3:09:08 PM9/26/22
to skia-discuss
While trying to compile skia with clang 14 (Ubuntu clang version 14.0.0-1ubuntu1, Target: x86_64-pc-linux-gnu) I get several warnings about avx. One of them:

../../src/opts/SkRasterPipeline_opts.h:4274:9: warning: AVX vector argument of type 'sse2::lowp::F' (vector of 8 'float' values) without 'avx' enabled changes the ABI [-Wpsabi]
    x = sqrt_(x*x + y*y);

Earlier I used to use clang 10 and didn't have any warnings.

My build commands:

bin/gn gen out/Test --args='is_debug=false is_official_build=true skia_use_system_harfbuzz=false cc="clang-14" cxx="clang++-14"'
ninja -C out/Test/

Do I need a different clang version (I hope not)? What flags (extra_cflags_cc, extra_ldflags) should I add to safely compile skia?
Reply all
Reply to author
Forward
0 new messages