Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
keep prebuilt flag
Browse files Browse the repository at this point in the history
  • Loading branch information
eFiniLan committed Feb 28, 2024
1 parent 8bd9053 commit 4042aa6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions selfdrive/manager/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@

TOTAL_SCONS_NODES = 2560
MAX_BUILD_PROGRESS = 100
PREBUILT = os.path.exists(os.path.join(BASEDIR, 'prebuilt'))

def build(spinner: Spinner, dirty: bool = False, minimal: bool = False) -> None:
env = os.environ.copy()
env['SCONS_PROGRESS'] = "1"
nproc = os.cpu_count()
if nproc is None:
nproc = 2
nproc =3

extra_args = ["--minimal"] if minimal else []

Expand Down Expand Up @@ -84,7 +85,7 @@ def build(spinner: Spinner, dirty: bool = False, minimal: bool = False) -> None:
f.unlink()


if __name__ == "__main__":
if __name__ == "__main__" and not PREBUILT:
spinner = Spinner()
spinner.update_progress(0, 100)
build(spinner, is_dirty())

0 comments on commit 4042aa6

Please sign in to comment.