Changeset 71b4444 in mainline for meson/part


Ignore:
Timestamp:
2023-10-22T16:59:42Z (2 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
78f0422c, dd7df1c
Parents:
590cb6d2 (diff), 2944b5a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge meson script updates for new toolchain

Location:
meson/part
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • meson/part/compiler_args/meson.build

    r590cb6d2 r71b4444  
    110110extra_cppflags = extra_common_flags + [
    111111        '-fno-exceptions',
     112        '-Wno-misleading-indentation',
    112113        '-frtti',
    113114]
     
    128129        add_project_link_arguments(extra_cflags, language : [ lang ])
    129130endforeach
     131
     132# This flag is needed at several places, hence we define it here.
     133#
     134# For backwards compatibility we try to detect --no-warn-rwx-segments.
     135# However, the autodetection done by Meson also results in
     136# "cannot find entry symbol _start; defaulting to 00000000004000b0"
     137# thus the option is never supported alone. So when detecting we also
     138# specify --entry=main so that the stub source provided by Meson is build
     139# correctly.
     140ldflags_ignore_rwx_segments = []
     141if cc.has_link_argument('-Wl,--no-warn-rwx-segments,--entry=main')
     142    ldflags_ignore_rwx_segments += ['-Wl,--no-warn-rwx-segments']
     143endif
  • meson/part/tools/meson.build

    r590cb6d2 r71b4444  
    6161endif
    6262
     63# On some distributions (e.g. Arch Linux), genisoimage is actually a symbolic
     64# link to mkisofs. However, they do not accept exactly the same options.
     65# Thus we check if genisoimage is a symbolic link to mkisofs and if it is so,
     66# we switch to mkisofs as that is the native application available.
     67fs = import('fs')
    6368genisoimage = find_program('genisoimage', required: false)
    64 if genisoimage.found()
     69_mkisofs = find_program('mkisofs', required: false)
     70if genisoimage.found() and not (fs.is_symlink(genisoimage.full_path()) and _mkisofs.found() and fs.is_samepath(genisoimage.full_path(), _mkisofs.full_path()))
    6571        genisoimage_type = 'genisoimage'
    6672else
    67         genisoimage = find_program('mkisofs', required: false)
     73        genisoimage = _mkisofs
    6874        if genisoimage.found()
    6975                genisoimage_type = 'mkisofs'
Note: See TracChangeset for help on using the changeset viewer.