Changeset 2483f28 in mainline for 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:
971849b1
Parents:
d27a505e
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-07-04 12:49:24)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:43)
Message:

Some clang fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • meson.build

    rd27a505e r2483f28  
    255255
    256256        '-Wwrite-strings',
    257         '-Wsystem-headers',
    258257        '-Wunknown-pragmas',
    259258
     
    267266        '-fdebug-prefix-map=' + meson.source_root() + '=.',
    268267]
     268
     269if cc.get_id() != 'clang'
     270        # Clang's own headers emit macro redefinition warnings.
     271        extra_common_flags += '-Wsystem-headers'
     272endif
    269273
    270274if UARCH != 'ia64'
     
    450454
    451455if CONFIG_DEVEL_FILES
    452         # Also install libgcc
    453         libgcc = run_command(
    454                 cc.cmd_array(), arch_uspace_c_args, '-print-libgcc-file-name',
     456        # Also install libgcc.
     457        # We have to explicitly use gcc for this, because clang only prints
     458        # file name instead of whole path.
     459        libgcc = run_command(cc_arch + '-helenos-gcc',
     460                arch_uspace_c_args, '-print-libgcc-file-name',
    455461                check: true,
    456462        ).stdout().strip()
Note: See TracChangeset for help on using the changeset viewer.