From b2bbd9c287d3fff4e209892d342ea3b0d562477e Mon Sep 17 00:00:00 2001 From: Justin W Smith <103147162+justsmth@users.noreply.github.com> Date: Tue, 25 Jun 2024 19:01:52 -0400 Subject: [PATCH] Use params to build_compilation_database.sh (#1647) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### Description of changes: Propogates script parameters to cmake command ### Testing: ``` ❯ ./util/build_compilation_database.sh -DFIPS=1 -DBUILD_SHARED_LIBS=1 ... + mkdir -p /var/folders/bd/5rrlftjx2098f44h7jbj3n400000gr/T/tmp.69gTlsxzTf/AWS-LC-BUILD + cmake /Users/justsmth/repos/aws-lc -B /var/folders/bd/5rrlftjx2098f44h7jbj3n400000gr/T/tmp.69gTlsxzTf/AWS-LC-BUILD -GNinja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DFIPS=1 -DBUILD_SHARED_LIBS=1 ... ... By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license. --- util/build_compilation_database.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/build_compilation_database.sh b/util/build_compilation_database.sh index 8cd675cf5c..2cf9b48c08 100755 --- a/util/build_compilation_database.sh +++ b/util/build_compilation_database.sh @@ -12,7 +12,7 @@ MY_CMAKE_FLAGS=("-GNinja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_EXPORT_COMPILE_COM mkdir -p "${AWS_LC_BUILD}" -cmake "${BASE_DIR}" -B "${AWS_LC_BUILD}" ${MY_CMAKE_FLAGS[@]} +cmake "${BASE_DIR}" -B "${AWS_LC_BUILD}" ${MY_CMAKE_FLAGS[@]} "${@}" cmake --build "${AWS_LC_BUILD}" --target all