Changeset 2483f28 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:
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

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/meson.build

    rd27a505e r2483f28  
    7070        '-ffreestanding',
    7171        # TODO: remove this flag
    72         '-Wno-cast-function-type',
     72        cc.get_supported_arguments([ '-Wno-cast-function-type' ]),
    7373]
    7474
  • 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()
  • meson/cross/amd64_clang

    rd27a505e r2483f28  
    1515has_function_printf = true
    1616needs_exe_wrapper = true
     17c_args = [ '-nostdlibinc' ]
     18cpp_args = [ '-nostdlibinc' ]
     19link_args = [ '-nostdlib' ]
    1720
    1821cc_arch = 'amd64'
Note: See TracChangeset for help on using the changeset viewer.