git: 3b4da25ead62 - main - tools/build/make.py: Make flake8 clean
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 22 Aug 2023 17:53:28 UTC
The branch main has been updated by jrtc27: URL: https://cgit.FreeBSD.org/src/commit/?id=3b4da25ead62c346d05199bc96cd6935e896849f commit 3b4da25ead62c346d05199bc96cd6935e896849f Author: Jessica Clarke <jrtc27@FreeBSD.org> AuthorDate: 2023-08-22 17:52:57 +0000 Commit: Jessica Clarke <jrtc27@FreeBSD.org> CommitDate: 2023-08-22 17:52:57 +0000 tools/build/make.py: Make flake8 clean --- tools/build/make.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/build/make.py b/tools/build/make.py index 05c095e10172..7ae6a95e8c23 100755 --- a/tools/build/make.py +++ b/tools/build/make.py @@ -112,6 +112,7 @@ def check_required_make_env_var(varname, binary_name, bindir): if parsed_args.debug: run([guess, "--version"]) + def check_xtool_make_env_var(varname, binary_name): # Avoid calling brew --prefix on macOS if all variables are already set: if os.getenv(varname): @@ -122,6 +123,7 @@ def check_xtool_make_env_var(varname, binary_name): return check_required_make_env_var(varname, binary_name, parsed_args.cross_bindir) + def default_cross_toolchain(): # default to homebrew-installed clang on MacOS if available if sys.platform.startswith("darwin"): @@ -249,7 +251,7 @@ if __name__ == "__main__": and not is_make_var_set("WITHOUT_CLEAN")): # Avoid accidentally deleting all of the build tree and wasting lots of # time cleaning directories instead of just doing a rm -rf ${.OBJDIR} - want_clean = input("You did not set -DWITHOUT_CLEAN/--clean/--no-clean." + want_clean = input("You did not set -DWITHOUT_CLEAN/--(no-)clean." " Did you really mean to do a clean build? y/[N] ") if not want_clean.lower().startswith("y"): bmake_args.append("-DWITHOUT_CLEAN")