Skip to content

Commit ec20f45

Browse files
authored
Merge pull request #341 from benfleis/integrate-clangd-updates-to-builds
update clangd setup to match duckdb, use .cache/clangd
2 parents 7bc79c5 + 27150f3 commit ec20f45

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

makefiles/duckdb_extension.Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# DEFAULT_TEST_EXTENSION_DEPS : `;`-separated list of extensions that are built in `default` and `full` mode
1313
# FULL_TEST_EXTENSION_DEPS : `;`-separated list of extensions that are built in `full` mode
1414

15-
.PHONY: all clean clean-python format debug release pull update wasm_mvp wasm_eh wasm_threads test test_release test_debug test_reldebug test_release_internal test_debug_internal test_reldebug_internal set_duckdb_version set_duckdb_tag output_distribution_matrix
15+
.PHONY: all clean clean-python clangd format debug release pull update wasm_mvp wasm_eh wasm_threads test test_release test_debug test_reldebug test_release_internal test_debug_internal test_reldebug_internal set_duckdb_version set_duckdb_tag output_distribution_matrix
1616

1717
all: release
1818

@@ -154,6 +154,9 @@ ifneq ($(TIDY_CHECKS),)
154154
TIDY_PERFORM_CHECKS := '-checks=${TIDY_CHECKS}'
155155
endif
156156

157+
clangd: ${EXTENSION_CONFIG_STEP}
158+
cmake $(GENERATOR) $(BUILD_FLAGS) $(EXT_DEBUG_FLAGS) $(VCPKG_MANIFEST_FLAGS) -DCMAKE_BUILD_TYPE=Debug -S $(DUCKDB_SRCDIR) -B .cache/clangd/debug
159+
157160
debug: ${EXTENSION_CONFIG_STEP}
158161
mkdir -p build/debug
159162
cmake $(GENERATOR) $(BUILD_FLAGS) $(EXT_DEBUG_FLAGS) $(VCPKG_MANIFEST_FLAGS) -DCMAKE_BUILD_TYPE=Debug -S $(DUCKDB_SRCDIR) -B build/debug

0 commit comments

Comments
 (0)