This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
For BOOT_CFLAGS and STAGE1_CFLAGS, if we change them to be affected by CFLAGS, we are going to run into issues where the compiler you are building with understand an option but the bootstrapping one does not. An example of this is building GCC with a non GCC compiler. So how do we handle that case, we split out STAGE1_CFLAGS and BOOT_CFLAGS.
mrs $ make stage1 builds with -g stage2 builds with -O2 -g mrs $ make CFLAGS=-O2 stage1 builds with -O2 stage2 builds with -O2 mrs $ make CFLAGS=-O2 STAGE1_CFLAGS=-O0 stage1 builds with -O0 stage2 builds with -O2 mrs $ make STAGE1_CFLAGS=-O0 stage1 builds with -O0 stage2 builds with -O2 -g mrs $ make STAGE1_CFLAGS=-O0 BOOT_CFLAGS=-O3 stage1 builds with -O0 stage2 builds with -O3 mrs $ make CFLAGS=-O0 BOOT_CFLAGS=-O3 stage1 builds with -O0 stage2 builds with -O3 mrs $ make BOOT_CFLAGS=-O3 stage1 builds with -g stage2 builds with -O3
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |