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?