vscode: project gen: adjust CXXFLAGS for cpp builds (#11412)

Currently `CFLAGS` was used, whereas we need to use `CXXFLAGS`.

Signed-off-by: David Korczynski <david@adalogics.com>
This commit is contained in:
DavidKorczynski 2023-12-27 11:06:35 +00:00 committed by GitHub
parent 859a65098a
commit a2d4f9bbdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions

View File

@ -590,9 +590,7 @@ WORKDIR $SRC/${baseName}`;
# LIB_FUZZING_ENGINE: linker flag for fuzzing harnesses # LIB_FUZZING_ENGINE: linker flag for fuzzing harnesses
# Copy all fuzzer executables to $OUT/ # Copy all fuzzer executables to $OUT/
$CXX $CXXFLAGS $LIB_FUZZING_ENGINE $SRC/fuzzer_example.cpp -o $OUT/fuzzer_example
# Copy all fuzzer executables to $OUT/
$CXX $CFLAGS $LIB_FUZZING_ENGINE $SRC/fuzzer_example.cpp -o $OUT/fuzzer_example
`; `;
const buildTemplateClusterfuzzLite = `#!/bin/bash -eu const buildTemplateClusterfuzzLite = `#!/bin/bash -eu
# Supply build instructions # 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 # LIB_FUZZING_ENGINE: linker flag for fuzzing harnesses
# Copy all fuzzer executables to $OUT/ # Copy all fuzzer executables to $OUT/
$CXX $CXXFLAGS $LIB_FUZZING_ENGINE \\
# Copy all fuzzer executables to $OUT/
$CXX $CFLAGS $LIB_FUZZING_ENGINE \\
$SRC/${baseName}/.clusterfuzzlite/fuzzer_example.cpp \\ $SRC/${baseName}/.clusterfuzzlite/fuzzer_example.cpp \\
-o $OUT/fuzzer_example -o $OUT/fuzzer_example
`; `;