Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
299 views
in Technique[技术] by (71.8m points)

SCons build cannot be interrupted in MinGW-w64

I've tried to build several Sconstruct projects (e.g. this, this and several others) using Msys2 and scons which it provides (mingw32/mingw-w64-i686-scons 4.0.1-2). Whenever I want to abort the build by pressing CTRL+C, I get back to the shell, however, the build keeps going in the background, and I have to go to task manager and kill python.exe from there to actually stop the build:

scons: Building targets ...
CXX dxx . common/2d/2dsline.cpp
CXX dxx . common/2d/bitblt.cpp
CXX dxx . common/2d/bitmap.cpp
^C

user@computer MINGW32 /c/Users/user/GIT/dxx-rebirth
$ CXX dxx . common/2d/box.cpp
CXX dxx . common/2d/canvas.cpp
...

No such problem appears with any make or cmake projects I have tried. Is this a known problem with scons / Msys2, and is there a fix? I understand a similar problem could be caused by a poorly written Sconstruct file, but I doubt several projects all have the same bug.

question from:https://stackoverflow.com/questions/65884250/scons-build-cannot-be-interrupted-in-mingw-w64

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...