[Nasm-bugs] [Bug 3392527] __OUTPUT_FORMAT__ not defined in file included with -p

noreply-nasm at gorcunov.org noreply-nasm at gorcunov.org
Sun Nov 11 13:37:19 PST 2018


https://bugzilla.nasm.us/show_bug.cgi?id=3392527

H. Peter Anvin <hpa at zytor.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|OPEN                        |CLOSED
         Resolution|---                         |FIXED

--- Comment #1 from H. Peter Anvin <hpa at zytor.com> ---
Ah. The problem is that pre_include() is executed before define_macros_late().
define_macros_late() is in fact completely bogus; it is probably a relic of
before we did two passes over the command options.

define_macros_early() is called between pass 1 and pass 2, and that is in fact
the correct place for defining *all* predefined macros, *including those that
depend on ofmt*:

I have pushed out a fix which should be released in daily build 2.14-20181111
once it finishes building. Help testing would be greatly appreciated.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.


More information about the Nasm-bugs mailing list