Skip to content

Commit b2bbd9c

Browse files
authored
Use params to build_compilation_database.sh (#1647)
### 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.
1 parent a6f7dc3 commit b2bbd9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/build_compilation_database.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ MY_CMAKE_FLAGS=("-GNinja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_EXPORT_COMPILE_COM
1212

1313
mkdir -p "${AWS_LC_BUILD}"
1414

15-
cmake "${BASE_DIR}" -B "${AWS_LC_BUILD}" ${MY_CMAKE_FLAGS[@]}
15+
cmake "${BASE_DIR}" -B "${AWS_LC_BUILD}" ${MY_CMAKE_FLAGS[@]} "${@}"
1616

1717
cmake --build "${AWS_LC_BUILD}" --target all
1818

0 commit comments

Comments
 (0)