File tree Expand file tree Collapse file tree 4 files changed +12
-8
lines changed Expand file tree Collapse file tree 4 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,11 @@ cd linux_build
27
27
28
28
# Configure cmake with tests enabled
29
29
# and disable use of libsecret due to not working on kokoro builders
30
- cmake .. -DFIREBASE_CPP_BUILD_TESTS=ON -DFIREBASE_FORCE_FAKE_SECURE_STORAGE=ON
30
+ cmake .. -DFIREBASE_CPP_BUILD_TESTS=ON -DFIREBASE_FORCE_FAKE_SECURE_STORAGE=ON " $@ "
31
31
32
32
# Build the SDK and the tests
33
- cmake --build .
33
+ cpus=$( nproc --all)
34
+ cmake --build . -- -j $cpus
34
35
35
36
# Run the tests
36
37
ctest --verbose
Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ cd mac_ios_build
27
27
28
28
# Configure cmake with tests enabled
29
29
# and disable use of libsecret due to not working on kokoro builders
30
- cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/ios.cmake .. -DFIREBASE_CPP_BUILD_TESTS=ON -DFIREBASE_FORCE_FAKE_SECURE_STORAGE=ON
30
+ cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/ios.cmake .. -DFIREBASE_CPP_BUILD_TESTS=ON -DFIREBASE_FORCE_FAKE_SECURE_STORAGE=ON " $@ "
31
31
32
32
# Build the SDK and the tests
33
- cmake --build .
33
+ cpus=$( sysctl -n hw.ncpu)
34
+ cmake --build . -- -j $cpus
Original file line number Diff line number Diff line change @@ -27,8 +27,9 @@ cd mac_ios_simulator_build
27
27
28
28
# Configure cmake with tests enabled
29
29
# and disable use of libsecret due to not working on kokoro builders
30
- cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/ios_simulator.cmake .. -DCLANG_ENABLE_MODULES=YES -DFIREBASE_CPP_BUILD_TESTS=ON -DFIREBASE_FORCE_FAKE_SECURE_STORAGE=ON
30
+ cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/ios_simulator.cmake .. -DCLANG_ENABLE_MODULES=YES -DFIREBASE_CPP_BUILD_TESTS=ON -DFIREBASE_FORCE_FAKE_SECURE_STORAGE=ON " $@ "
31
31
32
32
# Build the SDK and the tests
33
- cmake --build .
33
+ cpus=$( sysctl -n hw.ncpu)
34
+ cmake --build . -- -j $( cpus)
34
35
Original file line number Diff line number Diff line change @@ -27,10 +27,11 @@ cd mac_x64_build
27
27
28
28
# Configure cmake with tests enabled
29
29
# and disable use of libsecret due to not working on kokoro builders
30
- cmake .. -DFIREBASE_CPP_BUILD_TESTS=ON -DFIREBASE_FORCE_FAKE_SECURE_STORAGE=ON
30
+ cmake .. -DFIREBASE_CPP_BUILD_TESTS=ON -DFIREBASE_FORCE_FAKE_SECURE_STORAGE=ON " $@ "
31
31
32
32
# Build the SDK and the tests
33
- cmake --build .
33
+ cpus=$( sysctl -n hw.ncpu)
34
+ cmake --build . -- -j $cpus
34
35
35
36
# Run the tests
36
37
ctest --verbose
You can’t perform that action at this time.
0 commit comments