Changeset 971849b1 in mainline


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

Files:
2 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'
  • meson.build

    r2483f28 r971849b1  
    114114        'CONFIG_FPU',
    115115        'CONFIG_LINE_DEBUG',
     116        'CONFIG_LTO',
    116117        'CONFIG_PCUT_SELF_TESTS',
    117118        'CONFIG_PCUT_TESTS',
     
    247248
    248249        '-D_HELENOS_SOURCE',
     250
    249251        '-Wa,--fatal-warnings',
    250252
    251253        '-Wall',
    252254        '-Wextra',
    253 
    254255        '-Werror-implicit-function-declaration',
    255 
    256256        '-Wwrite-strings',
    257257        '-Wunknown-pragmas',
     
    260260
    261261        '-pipe',
     262
    262263        '-ffunction-sections',
    263 
    264264        '-fno-common',
    265 
    266265        '-fdebug-prefix-map=' + meson.source_root() + '=.',
    267266]
Note: See TracChangeset for help on using the changeset viewer.