Lines Matching full:cc

79 cc = meson.get_compiler('c')  variable
189 not cc.links('''
203 if 'syslog' in get_option('trace_backends') and not cc.compiles('''
405 if host_arch == 'i386' and not cc.links('''
439 qemu_isa_flags += cc.get_supported_arguments('-mneeded')
482 qemu_common_flags += cc.get_supported_arguments('-fno-pie', '-no-pie')
499 if cc.compiles(stack_protector_probe, args: ['-Werror', arg]) and \
500 cc.links(stack_protector_probe, args: ['-Werror', arg])
528 if host_os != 'darwin' and cc.links(ucontext_probe)
552 if get_option('safe_stack') != not cc.compiles(safe_stack_probe)
554 if get_option('safe_stack') != not cc.compiles(safe_stack_probe, args: safe_stack_arg)
567 if cc.has_argument('-fsanitize=address')
578 if cc.links('int main(int argc, char **argv) { return argc + 1; }',
586 if cc.has_argument('-fno-sanitize=function')
600 if not cc.has_function('__tsan_create_fiber',
610 if cc.has_argument('-Wno-tsan')
619 qemu_ldflags += cc.get_supported_link_arguments('-Wl,-z,relro', '-Wl,-z,now')
622 qemu_ldflags += cc.get_supported_link_arguments('-Wl,--no-seh', '-Wl,--nxcompat')
623 qemu_ldflags += cc.get_supported_link_arguments('-Wl,--dynamicbase', '-Wl,--high-entropy-va')
633 if cc.compiles('int main () { return 0; }',
669 if cc.compiles('int main () { return 0; }', name: '-fsanitize=cfi-icall',
675 if cc.compiles('int main () { return 0; }',
684 if cc.compiles('int main () { return 0; }',
716 cc.compiles('extern struct { void (*cb)(void); } s; void f(void) { s.cb(); }',
722 qemu_common_flags += cc.get_supported_arguments(hardening_flags)
763 tsa_has_cleanup = cc.compiles('''
785 add_project_arguments(cc.get_supported_arguments(warn_flags), native: false, language: 'c')
828 libm = cc.find_library('m', required: false)
830 util = cc.find_library('util', required: false)
848 pathcch = cc.find_library('pathcch', required: true)
849 synchronization = cc.find_library('synchronization', required: true)
850 socket = cc.find_library('ws2_32', required: true)
851 winmm = cc.find_library('winmm', required: true)
865 socket = [cc.find_library('socket'),
866 cc.find_library('nsl'),
867 cc.find_library('resolv')]
869 socket = [cc.find_library('posix_error_mapper'),
870 cc.find_library('network'),
871 cc.find_library('bsd')]
875 emulator_link_args = cc.get_supported_link_arguments('-Wl,-z,wxneeded')
890 elif cc.has_header('winhvplatform.h', required: get_option('whpx')) and \
891 cc.has_header('winhvemulation.h', required: get_option('whpx'))
907 nvmm = cc.find_library('nvmm', required: get_option('nvmm'))
1003 xen_deps += { l: cc.find_library(l, required: false) }
1013 if cc.links(files('scripts/xen-detect.c'),
1069 if not cc.compiles('''
1110 if gio.found() and not cc.links('''
1153 libaio = cc.find_library('aio', has_headers: ['libaio.h'],
1168 if not cc.links(linux_io_uring_test)
1193 if cc.links(libattr_test)
1196 libattr = cc.find_library('attr', has_headers: ['attr/xattr.h'],
1199 cc.links(libattr_test, dependencies: libattr, args: '-DCONFIG_LIBATTR')
1217 if vmnet.found() and not cc.has_header_symbol('vmnet/vmnet.h',
1235 seccomp_has_sysrawrc = cc.has_header_symbol('seccomp.h',
1243 libcap_ng = cc.find_library('cap-ng', has_headers: ['cap-ng.h'],
1246 if libcap_ng.found() and not cc.links('''
1290 vde = cc.find_library('vdeplug', has_headers: ['libvdeplug.h'],
1293 if vde.found() and not cc.links('''
1355 rt = cc.find_library('rt', required: false)
1448 libmpathpersist = cc.find_library('mpathpersist',
1453 mpathlibs += cc.find_library('devmapper',
1456 mpathlibs += cc.find_library('multipath',
1466 elif cc.links(mpath_test_source, dependencies: mpathlibs)
1508 if cc.links(curses_test, args: curses_compile_args, dependencies: [curses])
1517 has_curses_h = cc.has_header('curses.h', args: curses_compile_args)
1521 has_curses_h = cc.has_header('curses.h', args: curses_compile_args)
1526 libcurses = cc.find_library(curses_libname,
1529 if cc.links(curses_test, args: curses_compile_args, dependencies: libcurses)
1547 if cc.links('''
1576 brlapi = cc.find_library('brlapi', has_headers: ['brlapi.h'],
1578 if brlapi.found() and not cc.links('''
1598 if not cc.compiles('''
1619 librados = cc.find_library('rados', required: get_option('rbd'))
1620 librbd = cc.find_library('rbd', has_headers: ['rbd/librbd.h'],
1623 if cc.links('''
1651 glusterfs_ftruncate_has_stat = cc.links('''
1661 glusterfs_iocb_has_stat = cc.links('''
1682 if cc.links('''
1713 libbzip2 = cc.find_library('bz2', has_headers: ['bzlib.h'],
1715 if libbzip2.found() and not cc.links('''
1729 liblzfse = cc.find_library('lzfse', has_headers: ['lzfse.h'],
1732 if liblzfse.found() and not cc.links('''
1745 if not cc.has_header('sys/soundcard.h')
1748 oss = cc.find_library('ossaudio', required: get_option('oss'))
1761 if cc.has_header('dsound.h')
1782 if cc.has_header('epoxy/egl.h', dependencies: epoxy)
1860 cc.find_library('gpg-error', required: true)],
1865 if gcrypt.found() and not cc.links('''
1876 if gcrypt.found() and not cc.links('''
1890 if nettle.found() and not cc.has_header('nettle/xts.h', dependencies: nettle)
1895 if nettle.found() and not cc.links('''
1907 if nettle.found() and not cc.links('''
1943 if capstone.found() and not cc.compiles('#include <capstone.h>',
2010 sasl = cc.find_library('sasl2', has_headers: ['sasl/sasl.h'],
2020 pam = cc.find_library('pam', has_headers: ['security/pam_appl.h'],
2023 if pam.found() and not cc.links('''
2044 snappy = cc.find_library('snappy', has_headers: ['snappy-c.h'],
2047 if snappy.found() and not cc.links('''
2060 lzo = cc.find_library('lzo2', has_headers: ['lzo/lzo1x.h'],
2063 if lzo.found() and not cc.links('''
2076 numa = cc.find_library('numa', has_headers: ['numa.h'],
2079 if numa.found() and not cc.links('''
2097 fdt = cc.find_library('fdt', required: fdt_opt == 'system')
2098 if fdt.found() and cc.links('''
2121 rdma_libs = [cc.find_library('rdmacm', has_headers: ['rdma/rdma_cma.h'],
2123 cc.find_library('ibverbs', required: get_option('rdma'))]
2180 has_gettid = cc.has_function('gettid')
2193 cc.has_function('malloc_trim', prefix: '#include <malloc.h>')
2196 malloc = cc.find_library(get_option('malloc'), required: true)
2276 if libbpf.found() and not cc.links('''
2365 cc.has_header('IOKit/storage/IOMedia.h'))
2377 .require(host_os == 'linux' or cc.has_function('pthread_fchdir_np'),
2387 if cc.has_header_symbol('linux/fs.h', 'FIFREEZE')
2390 if cc.has_header_symbol('linux/fs.h', 'FITRIM')
2393 elif host_os == 'freebsd' and cc.has_header_symbol('ufs/ffs/fs.h', 'UFSSUSPEND')
2525 cc.has_function('numa_has_preferred_many',
2637 config_host_data.set('CONFIG_EPOLL', cc.has_header('sys/epoll.h'))
2638 config_host_data.set('CONFIG_LINUX_MAGIC_H', cc.has_header('linux/magic.h'))
2641 if cc.has_header('valgrind/valgrind.h')
2650 config_host_data.set('HAVE_BTRFS_H', cc.has_header('linux/btrfs.h'))
2651 config_host_data.set('HAVE_DRM_H', cc.has_header('libdrm/drm.h'))
2652 config_host_data.set('HAVE_OPENAT2_H', cc.has_header('linux/openat2.h'))
2653 config_host_data.set('HAVE_PTY_H', cc.has_header('pty.h'))
2654 config_host_data.set('HAVE_SYS_DISK_H', cc.has_header('sys/disk.h'))
2655 config_host_data.set('HAVE_SYS_IOCCOM_H', cc.has_header('sys/ioccom.h'))
2656 config_host_data.set('HAVE_SYS_KCOV_H', cc.has_header('sys/kcov.h'))
2658 config_host_data.set('HAVE_AFUNIX_H', cc.has_header('afunix.h'))
2662 config_host_data.set('CONFIG_CLOSE_RANGE', cc.has_function('close_range'))
2663 config_host_data.set('CONFIG_ACCEPT4', cc.has_function('accept4'))
2664 config_host_data.set('CONFIG_CLOCK_ADJTIME', cc.has_function('clock_adjtime'))
2665 config_host_data.set('CONFIG_DUP3', cc.has_function('dup3'))
2666 config_host_data.set('CONFIG_FALLOCATE', cc.has_function('fallocate'))
2667 config_host_data.set('CONFIG_POSIX_FALLOCATE', cc.has_function('posix_fallocate'))
2668 config_host_data.set('CONFIG_SCHED_GETCPU', cc.has_function('sched_getcpu', prefix: '#include <sche…
2671 config_host_data.set('CONFIG_POSIX_MEMALIGN', cc.has_function('posix_memalign', prefix: '#include <…
2672 config_host_data.set('CONFIG_ALIGNED_MALLOC', cc.has_function('_aligned_malloc'))
2673 config_host_data.set('CONFIG_VALLOC', cc.has_function('valloc'))
2674 config_host_data.set('CONFIG_MEMALIGN', cc.has_function('memalign'))
2675 config_host_data.set('CONFIG_PPOLL', cc.has_function('ppoll'))
2676 config_host_data.set('CONFIG_PREADV', cc.has_function('preadv', prefix: '#include <sys/uio.h>'))
2677 config_host_data.set('CONFIG_PTHREAD_FCHDIR_NP', cc.has_function('pthread_fchdir_np'))
2678 config_host_data.set('CONFIG_SENDFILE', cc.has_function('sendfile'))
2679 config_host_data.set('CONFIG_SETNS', cc.has_function('setns') and cc.has_function('unshare'))
2680 config_host_data.set('CONFIG_SYNCFS', cc.has_function('syncfs'))
2681 config_host_data.set('CONFIG_SYNC_FILE_RANGE', cc.has_function('sync_file_range'))
2682 config_host_data.set('CONFIG_TIMERFD', cc.has_function('timerfd_create'))
2683 config_host_data.set('CONFIG_GETLOADAVG', cc.has_function('getloadavg'))
2684 config_host_data.set('HAVE_COPY_FILE_RANGE', cc.has_function('copy_file_range'))
2685 config_host_data.set('HAVE_GETIFADDRS', cc.has_function('getifaddrs'))
2688 config_host_data.set('HAVE_OPENPTY', cc.has_function('openpty', dependencies: util))
2689 config_host_data.set('HAVE_STRCHRNUL', cc.has_function('strchrnul', prefix: osdep_prefix))
2690 config_host_data.set('HAVE_SYSTEM_FUNCTION', cc.has_function('system', prefix: '#include <stdlib.h>…
2693 cc.has_function('rbd_namespace_exists',
2699 cc.has_function('ibv_advise_mr',
2706 not cc.has_function('__sanitizer_start_switch_fiber',
2716 have_inotify_init = cc.has_header_symbol('sys/inotify.h', 'inotify_init')
2717 have_inotify_init1 = cc.has_header_symbol('sys/inotify.h', 'inotify_init1')
2721 inotify = cc.find_library('inotify')
2734 cc.has_header_symbol('linux/blkzoned.h', 'BLKOPENZONE'))
2736 cc.has_header_symbol('sys/epoll.h', 'epoll_create1'))
2738 cc.has_header_symbol('linux/falloc.h', 'FALLOC_FL_PUNCH_HOLE') and
2739 cc.has_header_symbol('linux/falloc.h', 'FALLOC_FL_KEEP_SIZE'))
2741 cc.has_header_symbol('linux/falloc.h', 'FALLOC_FL_ZERO_RANGE'))
2743 cc.has_header('linux/fiemap.h') and
2744 cc.has_header_symbol('linux/fs.h', 'FS_IOC_FIEMAP'))
2746 cc.has_header_symbol('sched.h', 'getcpu', prefix: osdep_prefix))
2748 cc.has_function('getrandom') and
2749 cc.has_header_symbol('sys/random.h', 'GRND_NONBLOCK'))
2751 cc.has_header_symbol('sys/prctl.h', 'PR_SET_TIMERSLACK'))
2753 cc.has_header_symbol('linux/rtnetlink.h', 'IFLA_PROTO_DOWN'))
2755 cc.has_header_symbol('sys/sysmacros.h', 'makedev'))
2757 cc.has_header_symbol('getopt.h', 'optreset'))
2759 cc.has_header_symbol('netinet/in.h', 'IPPROTO_MPTCP'))
2762 cc.has_header_symbol('libaio.h', 'io_prep_pwritev2'))
2766 cc.has_header_symbol('liburing.h', 'io_uring_prep_writev2'))
2769 cc.has_header_symbol('netinet/tcp.h', 'TCP_KEEPCNT') or
2770 cc.compiles('''
2780 cc.has_header_symbol('netinet/tcp.h', 'TCP_KEEPIDLE') or
2781 cc.has_header_symbol('netinet/tcp.h', 'TCP_KEEPALIVE') or
2782 cc.compiles('''
2790 cc.has_header_symbol('netinet/tcp.h', 'TCP_KEEPINTVL') or
2791 cc.compiles('''
2801 cc.has_member('struct sigevent', 'sigev_notify_thread_id',
2804 cc.has_member('struct stat', 'st_atim',
2807 cc.has_member('struct blk_zone', 'capacity',
2812 cc.has_type('struct iovec',
2815 cc.has_type('struct utmpx',
2818 config_host_data.set('CONFIG_EVENTFD', cc.links('''
2821 config_host_data.set('CONFIG_FDATASYNC', cc.links(osdep_prefix + '''
2830 has_madvise = cc.links(osdep_prefix + '''
2841 missing_madvise_proto = cc.links(osdep_prefix + '''>
2849 config_host_data.set('CONFIG_MEMFD', cc.links(osdep_prefix + '''
2852 config_host_data.set('CONFIG_OPEN_BY_HANDLE', cc.links(osdep_prefix + '''
2863 config_host_data.set('CONFIG_POSIX_MADVISE', cc.links(osdep_prefix + '''
2868 config_host_data.set('CONFIG_PTHREAD_SETNAME_NP_W_TID', cc.links(osdep_prefix + '''
2879 config_host_data.set('CONFIG_PTHREAD_SETNAME_NP_WO_TID', cc.links(osdep_prefix + '''
2889 config_host_data.set('CONFIG_PTHREAD_SET_NAME_NP', cc.links(osdep_prefix + '''
2901 config_host_data.set('CONFIG_PTHREAD_CONDATTR_SETCLOCK', cc.links(osdep_prefix + '''
2911 config_host_data.set('CONFIG_PTHREAD_AFFINITY_NP', cc.links(osdep_prefix + '''
2928 config_host_data.set('CONFIG_SIGNALFD', cc.links(osdep_prefix + '''
2931 config_host_data.set('CONFIG_SPLICE', cc.links(osdep_prefix + '''
2940 config_host_data.set('HAVE_MLOCKALL', cc.links(osdep_prefix + '''
2946 config_host_data.set('HAVE_MLOCK_ONFAULT', cc.links(osdep_prefix + '''
2954 have_l2tpv3 = cc.has_type('struct mmsghdr',
2963 have_netmap = cc.compiles('''
2982 config_host_data.set('HAVE_FSXATTR', cc.links('''
2990 config_host_data.set('HAVE_BROKEN_SIZE_MAX', not cc.compiles('''
3000 config_host_data.set('CONFIG_ATOMIC64', cc.links('''
3015 has_int128_type = host_os != 'emscripten' and cc.compiles('''
3021 has_int128 = has_int128_type and cc.links('''
3047 has_atomic128 = cc.links(atomic_test_128, args: qemu_isa_flags)
3056 has_atomic128_opt = cc.links('__attribute__((optimize("O1")))' + atomic_test_128,
3061 config_host_data.set('CONFIG_CMPXCHG128', cc.links('''
3073 config_host_data.set('CONFIG_GETAUXVAL', cc.links(osdep_prefix + '''
3079 config_host_data.set('CONFIG_ELF_AUX_INFO', cc.links(osdep_prefix + '''
3087 config_host_data.set('CONFIG_USBFS', have_linux_user and cc.compiles('''
3102 .require(cc.compiles('''
3113 have_cpuid_h = cc.links('''
3134 cc.has_header_symbol('asm/hwprobe.h',
3138 have_avx2 = cc.links('''
3146 have_avx512bw = cc.links('''
3171 config_host_data.set('CONFIG_ARM_AES_BUILTIN', cc.compiles('''
3184 have_membarrier = cc.compiles('''
3200 .require(cc.compiles(osdep_prefix + '''
3211 config_host_data.set('CONFIG_AF_VSOCK', cc.has_header_symbol(
3230 config_host_data.set('HAVE__LOCK_FILE', cc.links('''
3241 cc.has_function('spice_qxl_gl_scanout2', dependencies: spice))
3245 mingw_has_setjmp_longjmp = cc.links('''
3266 host_long_bits = cc.sizeof('void *') * 8
4784 if 'CC' in config_cross_tcg
4785 summary_info += {config_cross_tcg['TARGET_NAME']: config_cross_tcg['CC']}