1# Copyright 2021 The Chromium Authors 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5import("//build/config/sanitizers/sanitizers.gni") 6import("//build/toolchain/toolchain.gni") 7 8# This is included by reference in the //build/config/compiler config that 9# is applied to all targets. It is here to separate out the logic. 10 11config("compiler") { 12 defines = [ 13 "_AE_BIMODAL=1", 14 "_ALL_SOURCE", 15 "_ENHANCED_ASCII_EXT=0xFFFFFFFF", 16 "_Export=extern", 17 "_LARGE_TIME_API", 18 "_OPEN_MSGQ_EXT", 19 "_OPEN_SYS_FILE_EXT=1", 20 "_OPEN_SYS_SOCK_IPV6 ", 21 "_UNIX03_SOURCE ", 22 "_UNIX03_THREADS", 23 "_UNIX03_WITHDRAWN", 24 "_XOPEN_SOURCE=600", 25 "_XOPEN_SOURCE_EXTENDED", 26 "__static_assert=static_assert", 27 "PATH_MAX=1024", 28 ] 29 30 cflags = [ 31 "-q64", 32 "-qASCII", 33 "-Wc,DLL", 34 "-Wa,GOFF", 35 "-qENUM=INT", 36 "-qEXPORTALL", 37 "-qASM", 38 "-qmakedep", 39 "-qARCH=10", 40 "-qTUNE=10", 41 "-qasmlib=sys1.maclib:sys1.modgen", 42 "-qfloat=IEEE", 43 "-qlibansi", 44 "-qgonumber", 45 "-qlongname", 46 ] 47 48 cflags_cc = [ 49 ] 50 51 asmflags = [ 52 "-Wa,GOFF", 53 ] 54 55 ldflags = [ 56 ] 57} 58