Debian Codegraph @

test cases/unit/60 identity cross/stuff.h

raw
1 #ifdef EXTERNAL_BUILD
2 #ifndef ARG_BUILD
3 #error "External is build but arg_build is not set."
4 #elif defined(ARG_HOST)
5 #error "External is build but arg_host is set."
6 #else
7 #define GOT BUILD
8 #endif
9 #endif
10
11 #ifdef EXTERNAL_HOST
12 #ifndef ARG_HOST
13 #error "External is host but arg_host is not set."
14 #elif defined(ARG_BUILD)
15 #error "External is host but arg_build is set."
16 #else
17 #define GOT HOST
18 #endif
19 #endif
20
21 #if defined(EXTERNAL_BUILD) && defined(EXTERNAL_HOST)
22 #error "Both external build and external host set."
23 #endif
24
25 #if !defined(EXTERNAL_BUILD) && !defined(EXTERNAL_HOST)
26 #error "Neither external build nor external host is set."
27 #endif