Changeset 971849b1 in mainline for kernel/meson.build


Ignore:
Timestamp:
2019-08-17T12:49:43Z (5 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4b65f9a
Parents:
2483f28
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-07-07 12:04:25)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:43)
Message:

Enable LTO for kernel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/meson.build

    r2483f28 r971849b1  
    6262]
    6363
     64if CONFIG_LTO
     65        kernel_link_args += [ '-flto' ]
     66endif
     67
    6468if CONFIG_STRIP_BINARIES
    65         # TODO: let meson do this
     69        # TODO: do this after disassembling
    6670        kernel_link_args += [ '-s' ]
    6771endif
     
    7276        cc.get_supported_arguments([ '-Wno-cast-function-type' ]),
    7377]
     78
     79if CONFIG_LTO
     80        kernel_c_args += [ '-flto' ]
     81endif
    7482
    7583if cc.get_id() == 'clang'
Note: See TracChangeset for help on using the changeset viewer.