-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.h
53 lines (46 loc) · 1.69 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* SPDX-FileCopyrightText: 2024 - 2025 Eli Array Minkoff
*
* SPDX-License-Identifier: GPL-3.0-only
*
* A header file containing values that are intended to be configurable at
* compile time - define these values in a pre-included header or at the command
* line */
#ifndef BFC_CONFIG_H
#define BFC_CONFIG_H 1
/* whether or not to support GNU argument parsing - requires _GNU_SOURCE to be
* defined if enabled */
#ifndef BFC_LONGOPTS
#define BFC_LONGOPTS 0
#endif /* BFC_LONGOPTS */
/* __BACKENDS__ when adding a backend, add a macro here */
/* set to 0 if you don't want it included in the eambfc build. */
#ifndef BFC_TARGET_ARM64
#define BFC_TARGET_ARM64 1
#endif /* BFC_TARGET_ARM64 */
#ifndef BFC_TARGET_RISCV64
#define BFC_TARGET_RISCV64 1
#endif /* BFC_TARGET_RISCV64 */
#ifndef BFC_TARGET_S390X
#define BFC_TARGET_S390X 1
#endif /* BFC_TARGET_S390X */
#ifndef BFC_TARGET_X86_64
#define BFC_TARGET_X86_64 1
#endif /* BFC_TARGET_X86_64 */
/* the size of data chunks - must be a power of two.
*
* sized_bufs are reallocated to multiples of this size, and file I/O will also
* use buffers of this size, stored on the stack. */
#ifndef BFC_CHUNK_SIZE
#define BFC_CHUNK_SIZE 0x1000
#endif /* BFC_CHUNK_SIZE */
/* The target architecture - should be the same as the ELF e_machine value for
* that architecture for consistency's sake. */
#ifndef BFC_DEFAULT_TARGET
#define BFC_INFER_DEFAULT 1
#endif /* BFC_DEFAULT_TARGET */
/* runs some preprocessor validation that the above settings are sane, and
* defines some macros based on the configured default target architecture */
#define BFC_PREPROC_POST_CONFIG
#include "post_config.h" /* IWYU pragma: export */
#undef BFC_PREPROC_POST_CONFIG
#endif /* BFC_CONFIG_H */