From 846218a8bcfd560f5d26de886eaade49f83ce4dc Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 23 Oct 2023 11:13:19 +0800 Subject: [PATCH] build: move variable closer to where it is used for better readability. Signed-off-by: Kefu Chai --- configure.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configure.py b/configure.py index 268b3619ec..023c4b8ec4 100755 --- a/configure.py +++ b/configure.py @@ -19,8 +19,6 @@ import tempfile import textwrap from distutils.spawn import find_executable -curdir = os.getcwd() - outdir = 'build' tempfile.tempdir = f"{outdir}/tmp" @@ -1670,6 +1668,7 @@ forced_ldflags += dynamic_linker_option() user_ldflags = forced_ldflags + ' ' + args.user_ldflags +curdir = os.getcwd() user_cflags = args.user_cflags + f" -ffile-prefix-map={curdir}=." if args.target != '':