mirror of https://github.com/acidanthera/audk.git
BaseTools Makefile: Enable O2 option to replace Od for VS tool chain
Enable O2 option to generate fast code for performance improvement. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming.gao@intel.com> Acked-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
5277efed28
commit
9a1a63cf11
|
@ -17,7 +17,7 @@ all: $(APPLICATION)
|
||||||
|
|
||||||
$(APPLICATION) : $(OBJECTS)
|
$(APPLICATION) : $(OBJECTS)
|
||||||
-@if not exist $(BIN_PATH) mkdir $(BIN_PATH)
|
-@if not exist $(BIN_PATH) mkdir $(BIN_PATH)
|
||||||
$(LD) /nologo /debug /incremental:no /nodefaultlib:libc.lib /out:$@ $(LIBS) $**
|
$(LD) /nologo /debug /OPT:REF /OPT:ICF=10 /incremental:no /nodefaultlib:libc.lib /out:$@ $(LIBS) $**
|
||||||
|
|
||||||
$(OBJECTS) : ..\Include\Common\BuildVersion.h
|
$(OBJECTS) : ..\Include\Common\BuildVersion.h
|
||||||
|
|
||||||
|
|
|
@ -61,6 +61,6 @@ LINKER = $(LD)
|
||||||
|
|
||||||
INC = -I . -I $(SOURCE_PATH)\Include -I $(ARCH_INCLUDE) -I $(SOURCE_PATH)\Common $(INC)
|
INC = -I . -I $(SOURCE_PATH)\Include -I $(ARCH_INCLUDE) -I $(SOURCE_PATH)\Common $(INC)
|
||||||
|
|
||||||
CFLAGS = $(CFLAGS) /nologo /c /Zi /Od /RTC1 /D _DEBUG /MTd /W4 /WX /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE
|
CFLAGS = $(CFLAGS) /nologo /Zi /c /O2 /MD /W4 /WX /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE
|
||||||
CPPFLAGS = $(CPPFLAGS) /EHsc /nologo /c /Zi /Od /RTC1 /D _DEBUG /MTd /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE
|
CPPFLAGS = $(CPPFLAGS) /EHsc /nologo /Zi /c /O2 /MD /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue