General confusion around --buildtype=plain
#11455
-
I'm trying to cross-compile some C code with a GCC-based compiler for another architecture. As I want complete control over my flags. I assumed that So my question is : Is there any way to remove all flags leaving the user specifing all arguments by himself ? My command : |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
The purpose of buildtype=plain is to remove all flags that would have been set by a buildtype, not to remove all flags, no matter what. There are other flags we always set, such as We also emit the standard depfile arguments for GCC, and you cannot get rid of those either, they're vital for buildsystem tracking. What's wrong with -D_FILE_OFFSET_BITS=64? |
Beta Was this translation helpful? Give feedback.
The purpose of buildtype=plain is to remove all flags that would have been set by a buildtype, not to remove all flags, no matter what. There are other flags we always set, such as
/nologo /Zc:__cplusplus
for the Microsoft compiler (the latter flag just instructs MSVC to actually be truthful in the __cplusplus define instead of lying regardless of std and pretending to be c++98 for compatibility with extremely old, extremely broken code).We also emit the standard depfile arguments for GCC, and you cannot get rid of those either, they're vital for buildsystem tracking.
What's wrong with -D_FILE_OFFSET_BITS=64?