This will allow for a RELEASE build mode in the next patch.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <[email protected]>
---
 Source/C/Makefiles/ms.app    | 5 ++++-
 Source/C/Makefiles/ms.common | 7 +++++--
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/Source/C/Makefiles/ms.app b/Source/C/Makefiles/ms.app
index 455549c..8595724 100644
--- a/Source/C/Makefiles/ms.app
+++ b/Source/C/Makefiles/ms.app
@@ -15,9 +15,12 @@ APPLICATION = $(BIN_PATH)\$(APPNAME).exe
 
 all: $(APPLICATION) 
 
+LD_FLAGS = /incremental:no /nodefaultlib:libc.lib
+LD_FLAGS = /debug $(LD_FLAGS)
+
 $(APPLICATION) : $(OBJECTS) 
        -@if not exist $(BIN_PATH) mkdir $(BIN_PATH)
-       $(LD) /nologo /debug /incremental:no /nodefaultlib:libc.lib /out:$@ 
$(LIBS) $**
+       $(LD) /nologo $(LD_FLAGS) /out:$@ $(LIBS) $**
 
 $(OBJECTS) : ..\Include\Common\BuildVersion.h
 
diff --git a/Source/C/Makefiles/ms.common b/Source/C/Makefiles/ms.common
index fa9ffba..0749f93 100644
--- a/Source/C/Makefiles/ms.common
+++ b/Source/C/Makefiles/ms.common
@@ -55,6 +55,9 @@ LINKER = $(LD)
 
 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 
-CPPFLAGS = $(CPPFLAGS) /EHsc /nologo /c /Zi /Od /RTC1 /D _DEBUG /MTd /D 
_CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE 
+C_CPP_FLAGS = /nologo /c /Zi /D _CRT_SECURE_NO_DEPRECATE /D 
_CRT_NONSTDC_NO_DEPRECATE 
+C_CPP_FLAGS = $(C_CPP_FLAGS) /Od /RTC1 /MTd /D _DEBUG
+
+CFLAGS = $(CFLAGS) $(C_CPP_FLAGS) /W4 /WX
+CPPFLAGS = $(CPPFLAGS) $(C_CPP_FLAGS) /EHsc
 
-- 
1.9.2


------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
edk2-buildtools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-buildtools-devel

Reply via email to