Could you make this change to the subject (first) line of your commit message?

-[BaseTools] Fix XCODE5 to work properly with NASM
+BaseTools: Fix XCODE5 to work properly with NASM

On Tue, Sep 9, 2014 at 3:05 PM, Andrew Fish <[email protected]> wrote:
> BaseTools maintainers,
>
> This is a low risk fix that will fix nasm link issues. XCODE is missing the
> flags to create Mach-O binaries, raw .bin files will not link and crash the
> build.

Hmm. This makes me wonder if we should add a bogus default NASM_FLAGS
to make sure the build breaks in a way that is easy to understand when
the toolchain doesn't set NASM_FLAGS. (I hope it didn't waste too much
of your time in figuring out the issue here.)

Reviewed-by: Jordan Justen <[email protected]>

> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Andrew Fish <[email protected]>
>
> Thanks,
>
> Andrew Fish
>
>>svn diff --diff-cmd diff BaseTools/Conf/tools_def.template
> Index: BaseTools/Conf/tools_def.template
> ===================================================================
> --- BaseTools/Conf/tools_def.template (revision 16081)
> +++ BaseTools/Conf/tools_def.template (working copy)
> @@ -6478,6 +6478,7 @@
>    DEBUG_XCODE5_IA32_ASM_FLAGS  = -arch i386 -g
>    NOOPT_XCODE5_IA32_ASM_FLAGS  = -arch i386 -g
>  RELEASE_XCODE5_IA32_ASM_FLAGS  = -arch i386
> +      *_XCODE5_IA32_NASM_FLAGS = -f macho32
>
>
>
>
>
>    DEBUG_XCODE5_IA32_CC_FLAGS   = -arch i386 -c -g -Os       -Wall -Werror
> -include AutoGen.h -funsigned-char -fno-stack-protector -fno-builtin
> -fshort-wchar -fasm-blocks -mdynamic-no-pic -mno-implicit-float
> -mms-bitfields -msoft-float -Wno-unused-parameter -Wno-missing-braces
> -Wno-missing-field-initializers -Wno-tautological-compare -Wno-sign-compare
> -ftrap-function=undefined_behavior_has_been_optimized_away_by_clang
> $(PLATFORM_FLAGS)
> @@ -6497,6 +6498,7 @@
>    DEBUG_XCODE5_X64_ASM_FLAGS  = -arch x86_64 -g
>    NOOPT_XCODE5_X64_ASM_FLAGS  = -arch x86_64 -g
>  RELEASE_XCODE5_X64_ASM_FLAGS  = -arch x86_64
> +      *_XCODE5_X64_NASM_FLAGS = -f macho64
>  *_XCODE5_*_PP_FLAGS         = -E -x assembler-with-cpp -include
> $(DEST_DIR_DEBUG)/AutoGen.h
>  *_XCODE5_*_VFRPP_FLAGS      = -x c -E -P -DVFRCOMPILE -include
> $(DEST_DIR_DEBUG)/$(MODULE_NAME)StrDefs.h
>
>
>
>
>
> ------------------------------------------------------------------------------
> Want excitement?
> Manually upgrade your production database.
> When you want reliability, choose Perforce.
> Perforce version control. Predictably reliable.
> http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
> _______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/edk2-devel
>

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to