在 2025-03-02 23:31, Alvin Wong via Mingw-w64-public 写道:
Honestly I've never thought about this before, so I just gave it a check on MSVC. Testing with the version I have installed (19.35.32215), by comparing the output of `cl /PD /Zc:preprocessor test.cpp` and `cl /PD /Zc:preprocessor /guard:cf test.cpp`. To my surprise (or maybe I shouldn't have been surprised?), the output of the latter command has an additional `#define _CONTROL_FLOW_GUARD 1`. It seems to me that LLVM/Clang does not implement this behaviour, even in MSVC mode. We might need to request this to be implemented upstream.

Regardless, mingw-w64 will need to support versions of LLVM without this preprocessor. Also, I'm not sure if this preprocessor would even apply to assembly files.

Ideally there should always be a load config directory. If it is compiled into libmingwex then it's not possible to turn it on or off at their disposal.



--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to