-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.h
43 lines (33 loc) · 1 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
#ifndef CONFIG_H
#define CONFIG_H
#define CONFIG_VERSION "0.6.0-beta1"
#define CONFIG_TARGET_X86_64 1
#define CONFIG_CC_INCLUDE_DIR "/usr/local/lib/hcc/include"
#define LINUX
#ifdef LINUX
#define CONFIG_TARGET_LINUX 1
#define CONFIG_CRT_PREFIX "/usr/lib64"
#define CONFIG_LIBC_PREFIX "/usr/lib64"
#define CONFIG_DYNAMIC_LINKER "/lib64/ld-linux-x86-64.so.2"
// #define CONFIG_CRT_PREFIX "/usr/lib/x86_64-linux-gnu"
// #define CONFIG_LIBC_PREFIX "/usr/lib/x86_64-linux-gnu"
// #define CONFIG_DYNAMIC_LINKER "/lib64/ld-linux-x86-64.so.2"
/*
Other prefix:
CONFIG_CRT_PREFIX "/usr/lib64"
CONFIG_LIBC_PREFIX "/usr/lib64"
CONFIG_LIBGCC_PREFIX:
"/usr/lib/gcc/`gcc -dumpmachine`/`gcc -dumpversion|cut -d. -f1`"
*/
#elif defined DARWIN
/*
xcrun --show-sdk-path
xcrun --show-sdk-version
*/
#define CONFIG_TARGET_DARWIN 1
#define CONFIG_MACOS_INCLUDE_DIR "/Applications/Xcode.app/Contents/Developer/\
Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include"
#else
#error "unsupported platform"
#endif
#endif