Hi,

I'm compiling Qt source on Windows using Visual Studio 2022, and it failed on the first file:

cl : Command line error D8016 : '/RTC1' and '/O2' command-line options are incompatible

My steps:

mkdir build
cd build
..\qt6\configure.bat -prefix . -debug -static -opensource -direct2d -nomake examples -nomake tests -skip qt3d,qt5compat,qtactiveqt,qtcharts,qtcoap,qtconnectivity,qtdatavis3d,qtdeclarative,qtdoc,qtimageformats,qtlanguageserver,qtlottie,qtmqtt,qtmultimedia,qtnetworkauth,qtopcua,qtpositioning,qtquick3d,qtquicktimeline,qtremoteobjects,qtscxml,qtsensors,qtserialbus,qtserialport,qtshadertools,qtsvg,qttools,qttranslations,qtvirtualkeyboard,qtwayland,qtwebchannel,qtwebengine,qtwebsockets,qtwebview,qtgraphs,qtlocation,qtquick3dphysics,qtquickeffectmaker,qtspeech,qtgrpc,qthttpserver
cmake --build .

I've added -debug option, why it still generates /O2?
What file should I modify to get rid of /O2?

-- 
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development

Reply via email to