xref: /aosp_15_r20/external/angle/build/config/zos/BUILD.gn (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
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 specify defines and flags that
10# are z/OS-specific.
11
12config("compiler") {
13  defines = [
14    "_AE_BIMODAL=1",
15    "_ALL_SOURCE",
16    "_ENHANCED_ASCII_EXT=0xFFFFFFFF",
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    "PATH_MAX=1024",
27    "ZOSLIB_OVERRIDE_CLIB",
28  ]
29
30  cflags = [
31    "-fno-short-enums",
32    "-fno-xl-pragma-pack",
33    "-fzos-le-char-mode=ascii",
34    "-m64",
35    "-march=arch14",
36    "-mzos-target=zosv2r4",
37    "-Wno-unknown-pragmas",
38  ]
39
40  cflags_cc = []
41
42  asmflags = [
43    "-Wa,-mGOFF",
44    "-fno-integrated-as",
45  ]
46
47  ldflags = []
48}
49