Skip to content

Commit 3cafdcd

Browse files
authored
Merge pull request #80241 from etcwilde/ewilde/remove-ninja-time-tracking
[build-script] Remove ninja build time tracking
2 parents c21de06 + fb4799f commit 3cafdcd

File tree

1 file changed

+9
-13
lines changed
  • utils/swift_build_support/swift_build_support/products

1 file changed

+9
-13
lines changed

utils/swift_build_support/swift_build_support/products/ninja.py

+9-13
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
from . import product
2323
from .. import shell
24-
from ..utils import log_time_in_scope
2524

2625

2726
class Ninja(product.Product):
@@ -54,18 +53,15 @@ def ninja_bin_path(self):
5453
def build(self):
5554
if os.path.exists(self.ninja_bin_path):
5655
return
57-
58-
print("--- Local Ninja Build ---")
59-
with log_time_in_scope('local ninja'):
60-
shell.call([
61-
self.toolchain.cmake,
62-
"-S", self.source_dir,
63-
"-B", self.build_dir,
64-
"-DCMAKE_BUILD_TYPE=Release",
65-
"-DBUILD_TESTING=OFF",
66-
f"-DCMAKE_C_COMPILER={self.toolchain.cc}",
67-
f"-DCMAKE_CXX_COMPILER={self.toolchain.cxx}"])
68-
shell.call([self.toolchain.cmake, "--build", self.build_dir])
56+
shell.call([
57+
self.toolchain.cmake,
58+
"-S", self.source_dir,
59+
"-B", self.build_dir,
60+
"-DCMAKE_BUILD_TYPE=Release",
61+
"-DBUILD_TESTING=OFF",
62+
f"-DCMAKE_C_COMPILER={self.toolchain.cc}",
63+
f"-DCMAKE_CXX_COMPILER={self.toolchain.cxx}"])
64+
shell.call([self.toolchain.cmake, "--build", self.build_dir])
6965

7066

7167
def get_ninja_version(ninja_bin_path):

0 commit comments

Comments
 (0)