From 56a381fd1e0e5d03287e32b1be193572375ae7af Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 1 Dec 2024 18:41:38 +0200 Subject: [PATCH] tools: use -Wno-error=incompatible-pointer-types in oldv, which is more permissive than just -Wno-error=incompatible-function-pointer-types, and works with gcc too, not just clang --- cmd/tools/modules/vgit/vgit.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/tools/modules/vgit/vgit.v b/cmd/tools/modules/vgit/vgit.v index 02798906bd..b777269d18 100644 --- a/cmd/tools/modules/vgit/vgit.v +++ b/cmd/tools/modules/vgit/vgit.v @@ -196,7 +196,7 @@ pub fn (mut vgit_context VGitContext) compile_oldv_if_needed() { mut c_flags := '-std=gnu11 -I ./thirdparty/stdatomic/nix -w' mut c_ldflags := '-lm -lpthread' mut vc_source_file_location := os.join_path_single(vgit_context.path_vc, 'v.c') - mut vc_v_cpermissive_flags := '${vgit_context.cc_options} -Wno-error=incompatible-function-pointer-types -Wno-error=implicit-function-declaration -Wno-error=int-conversion' + mut vc_v_cpermissive_flags := '${vgit_context.cc_options} -Wno-error=incompatible-pointer-types -Wno-error=implicit-function-declaration -Wno-error=int-conversion' // after 85b58b0 2021-09-28, -no-parallel is supported, and can be used to force the cgen stage to be single threaded, which increases the chances of successful bootstraps mut vc_v_bootstrap_flags := '' if vgit_context.commit_v__ts >= 1632778086 {