HomeFreeBSD

Fix build with path names with 'align' or 'nop' in them.

Description

Fix build with path names with 'align' or 'nop' in them.

clang is now inserting .file directives with the entire path in
them. This is fine, except that our sed peephole optimizer removes
them if ${SRCTOP} or ${OBJTOP} contains 'align' or 'nop', leading to
build failures. The sed peephole optimizer removes useful things for
boot2 when used with clang, so restrict its use to gcc. Also, gcc no
longer generates nops to pad things, so there's no point in removing
it. Specialize the optimization to just removing the .align 4 lines to
preclude inadvertant path matching.

Sponsored by: Netflix
Commit brought to you the path: /home/xxx/NCD-3592-logsynopts/FreeBSD

Details

Provenance
impAuthored on
Parents
rS316063: [private] add libevent1 and sqlite3 include files for our private libraries.
Branches
Unknown
Tags
Unknown