Skip to content

General confusion around --buildtype=plain #11455

Answered by eli-schwartz
mtribiere asked this question in Q&A
Discussion options

You must be logged in to vote

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?

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@xclaesse
Comment options

@mtribiere
Comment options

@mtribiere
Comment options

@eli-schwartz
Comment options

@xclaesse
Comment options

Answer selected by mtribiere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants