Browse Source

use ninja instead of make

lyon1998 3 năm trước cách đây
mục cha
commit
1c706af8b8
3 tập tin đã thay đổi với 5 bổ sung5 xóa
  1. 1 1
      port/linux/ci_benchmark_times.sh
  2. 3 3
      port/linux/init.sh
  3. 1 1
      port/linux/make.sh

+ 1 - 1
port/linux/ci_benchmark_times.sh

@@ -1,4 +1,4 @@
-cd Release && make -j
+cd Release && ninja -j8
 cd ..
 
 RUN_TIMES=$1

+ 3 - 3
port/linux/init.sh

@@ -16,14 +16,14 @@ rm build -rf
 mkdir build
 sh api-make.sh
 cd build
-cmake -DCMAKE_BUILD_TYPE=Debug ..
+cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug ..
 
 cd $ROOT
 rm Release -rf
 mkdir Release
 cd Release 
-cmake -DCMAKE_BUILD_TYPE=Release -DPIKA_CONFIG_ENABLE=ON ..
-make -j
+cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DPIKA_CONFIG_ENABLE=ON ..
+ninja -j0
 
 cd $ROOT
 sh make.sh

+ 1 - 1
port/linux/make.sh

@@ -1,3 +1,3 @@
 sh api-make.sh
 cd build
-make -j
+ninja -j0