From a2d4f9bbdff247a4e156d5613817f94a7f8fcec4 Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Wed, 27 Dec 2023 11:06:35 +0000 Subject: [PATCH] vscode: project gen: adjust CXXFLAGS for cpp builds (#11412) Currently `CFLAGS` was used, whereas we need to use `CXXFLAGS`. Signed-off-by: David Korczynski --- tools/vscode-extension/src/projectIntegrationHelper.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tools/vscode-extension/src/projectIntegrationHelper.ts b/tools/vscode-extension/src/projectIntegrationHelper.ts index a9b02be4a..caad186f7 100644 --- a/tools/vscode-extension/src/projectIntegrationHelper.ts +++ b/tools/vscode-extension/src/projectIntegrationHelper.ts @@ -590,9 +590,7 @@ WORKDIR $SRC/${baseName}`; # LIB_FUZZING_ENGINE: linker flag for fuzzing harnesses # Copy all fuzzer executables to $OUT/ - -# Copy all fuzzer executables to $OUT/ -$CXX $CFLAGS $LIB_FUZZING_ENGINE $SRC/fuzzer_example.cpp -o $OUT/fuzzer_example +$CXX $CXXFLAGS $LIB_FUZZING_ENGINE $SRC/fuzzer_example.cpp -o $OUT/fuzzer_example `; const buildTemplateClusterfuzzLite = `#!/bin/bash -eu # Supply build instructions @@ -604,9 +602,7 @@ $CXX $CFLAGS $LIB_FUZZING_ENGINE $SRC/fuzzer_example.cpp -o $OUT/fuzzer_example # LIB_FUZZING_ENGINE: linker flag for fuzzing harnesses # Copy all fuzzer executables to $OUT/ - -# Copy all fuzzer executables to $OUT/ -$CXX $CFLAGS $LIB_FUZZING_ENGINE \\ +$CXX $CXXFLAGS $LIB_FUZZING_ENGINE \\ $SRC/${baseName}/.clusterfuzzlite/fuzzer_example.cpp \\ -o $OUT/fuzzer_example `;