Skip to content

Commit 5b3bc35

Browse files
committed
* fix weird behavior on 6.5.3 some build machine
1 parent 805934c commit 5b3bc35

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

Scripts/make.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,18 @@ def Build():
268268
cprint("Generate makefile from qmake...", 'yellow', attrs=['reverse', 'blink'])
269269
if not os.path.exists(build_cache):
270270
os.makedirs(build_cache)
271-
utils.call([qmake_path, prj_path, "-spec", "linux-g++" if "linux" in sys.platform else "win32-g++", "\"CONFIG+=qtquickcompiler\""], build_cache)
271+
qmake_spec = "linux-g++" if "linux" in sys.platform else "win32-g++"
272+
qmake_args = [
273+
qmake_path,
274+
prj_path,
275+
"-spec",
276+
qmake_spec,
277+
"CONFIG+=qtquickcompiler",
278+
"CONFIG+=release",
279+
"CONFIG-=debug",
280+
"CONFIG-=debug_and_release",
281+
]
282+
utils.call(qmake_args, build_cache)
272283

273284
cprint("Build qmake...", 'yellow', attrs=['reverse', 'blink'])
274285
utils.call([make_path, "-f", makefile_path, "qmake_all"], build_cache)

0 commit comments

Comments
 (0)