From cd5fae6a5b66cbc91feee324116785c7b0414705 Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Wed, 22 Apr 2020 14:14:09 -0700 Subject: [PATCH] generate a compilation database when building with make for the default target, so that clang-tidy can be used --- docs/packages.md | 2 +- makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/packages.md b/docs/packages.md index 42657bf2..e1a307db 100644 --- a/docs/packages.md +++ b/docs/packages.md @@ -4,7 +4,7 @@ Notes on how we can update the different packages for ixwebsocket. Visit the [releases](https://github.com/machinezone/IXWebSocket/releases) page on Github. A tag must have been made first. -Download the latest entry. +Download the latest entry. ``` $ cd /tmp diff --git a/makefile b/makefile index aaf53fe1..81afc159 100644 --- a/makefile +++ b/makefile @@ -20,7 +20,7 @@ install: brew # Release, Debug, MinSizeRel, RelWithDebInfo are the build types # brew: - mkdir -p build && (cd build ; cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_TLS=1 -DUSE_WS=1 -DUSE_TEST=1 .. ; make -j 4 install) + mkdir -p build && (cd build ; cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Debug -DUSE_TLS=1 -DUSE_WS=1 -DUSE_TEST=1 .. ; make -j 4 install) # Docker default target. We've add problem with OpenSSL and TLS 1.3 (on the # server side ?) and I can't work-around it easily, so we're using mbedtls on