Skip to content

Commit adb0358

Browse files
committed
Default to Ninja build instead of Makefiles on Linux
1 parent 292f32f commit adb0358

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pkgman/installers/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ def get_cmake_generator(use_clang=True):
5959
parameters = ["-G", "Visual Studio 15 2017 Win64"]
6060
if use_clang:
6161
parameters += ["-T", "LLVM-vs2014"]
62+
elif sys.platform.startswith("linux"):
63+
# do ninja-build on linux for faster builds
64+
parameters = ["-G", "Ninja"]
6265

6366
return parameters
6467

travis.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ linux_initialize() {
3939
fi
4040

4141
printf " > Installing the required packages...\n"
42-
sudo apt-get install -qqy python2.7 build-essential python3 python3-pip clang
42+
sudo apt-get install -qqy python2.7 build-essential python3 python3-pip clang ninja-build
4343
if [ $? -ne 0 ] ; then
4444
printf " x Could not install the required dependencies\n"
4545
return 1

0 commit comments

Comments
 (0)