Generate settings by make/hadrian instead of configure
[ghc.git] / hadrian / cfg / system.config.in
1 # This file is processed by the configure script.
2 # See hadrian/src/UserSettings.hs for user-defined settings.
3 #===========================================================
4
5 # Paths to builders:
6 #===================
7
8 alex           = @AlexCmd@
9 ar             = @ArCmd@
10 autoreconf     = @AutoreconfCmd@
11 cc             = @CC@
12 happy          = @HappyCmd@
13 hs-cpp         = @HaskellCPPCmd@
14 ld             = @LdCmd@
15 make           = @MakeCmd@
16 nm             = @NmCmd@
17 objdump        = @ObjdumpCmd@
18 ranlib         = @REAL_RANLIB_CMD@
19 sphinx-build   = @SPHINXBUILD@
20 system-ar      = @AR_STAGE0@
21 system-cc      = @CC_STAGE0@
22 system-ghc     = @WithGhc@
23 system-ghc-pkg = @GhcPkgCmd@
24 tar            = @TarCmd@
25 patch          = @PatchCmd@
26 xelatex        = @XELATEX@
27
28 # Python 3 is required to run test driver.
29 # See: https://github.com/ghc/ghc/blob/master/testsuite/mk/boilerplate.mk#L220
30 python         = python3
31
32 # Information about builders:
33 #============================
34
35 ar-supports-at-file = @ArSupportsAtFile@
36 cc-clang-backend    = @CC_CLANG_BACKEND@
37 cc-llvm-backend     = @CC_LLVM_BACKEND@
38 gcc-is-clang        = @GccIsClang@
39 hs-cpp-args         = @HaskellCPPArgs@
40
41 # Build options:
42 #===============
43
44 solaris-broken-shld  = @SOLARIS_BROKEN_SHLD@
45 ghc-unregisterised   = @Unregisterised@
46 ghc-source-path      = @hardtop@
47 leading-underscore   = @LeadingUnderscore@
48
49 # Information about build, host and target systems:
50 #==================================================
51
52 build-platform        = @BuildPlatform@
53 build-arch            = @BuildArch_CPP@
54 build-os              = @BuildOS_CPP@
55 build-vendor          = @BuildVendor_CPP@
56
57 host-platform         = @HostPlatform@
58 host-arch             = @HostArch_CPP@
59 host-os               = @HostOS_CPP@
60 host-vendor           = @HostVendor_CPP@
61
62 target-platform       = @TargetPlatform@
63 target-platform-full  = @TargetPlatformFull@
64 target-arch           = @TargetArch_CPP@
65 target-os             = @TargetOS_CPP@
66 target-vendor         = @TargetVendor_CPP@
67 llvm-target           = @LLVMTarget_CPP@
68
69 cross-compiling       = @CrossCompiling@
70
71 dynamic-extension     = @soext_target@
72
73 ghc-version           = @GhcVersion@
74 ghc-major-version     = @GhcMajVersion@
75 ghc-minor-version     = @GhcMinVersion@
76 ghc-patch-level       = @GhcPatchLevel@
77
78 supports-this-unit-id = @SUPPORTS_THIS_UNIT_ID@
79
80 project-name          = @ProjectName@
81 project-version       = @ProjectVersion@
82 project-version-int   = @ProjectVersionInt@
83 project-patch-level   = @ProjectPatchLevel@
84 project-patch-level1  = @ProjectPatchLevel1@
85 project-patch-level2  = @ProjectPatchLevel2@
86 project-git-commit-id = @ProjectGitCommitId@
87
88 # Compilation and linking flags:
89 #===============================
90
91 conf-cc-args-stage0         = @CONF_CC_OPTS_STAGE0@
92 conf-cc-args-stage1         = @CONF_CC_OPTS_STAGE1@
93 conf-cc-args-stage2         = @CONF_CC_OPTS_STAGE2@
94 conf-cc-args-stage3         = @CONF_CC_OPTS_STAGE3@
95
96 conf-cpp-args-stage0        = @CONF_CPP_OPTS_STAGE0@
97 conf-cpp-args-stage1        = @CONF_CPP_OPTS_STAGE1@
98 conf-cpp-args-stage2        = @CONF_CPP_OPTS_STAGE2@
99 conf-cpp-args-stage3        = @CONF_CPP_OPTS_STAGE3@
100
101 conf-gcc-linker-args-stage0 = @CONF_GCC_LINKER_OPTS_STAGE0@
102 conf-gcc-linker-args-stage1 = @CONF_GCC_LINKER_OPTS_STAGE1@
103 conf-gcc-linker-args-stage2 = @CONF_GCC_LINKER_OPTS_STAGE2@
104 conf-gcc-linker-args-stage3 = @CONF_GCC_LINKER_OPTS_STAGE3@
105
106 conf-ld-linker-args-stage0  = @CONF_LD_LINKER_OPTS_STAGE0@
107 conf-ld-linker-args-stage1  = @CONF_LD_LINKER_OPTS_STAGE1@
108 conf-ld-linker-args-stage2  = @CONF_LD_LINKER_OPTS_STAGE2@
109 conf-ld-linker-args-stage3  = @CONF_LD_LINKER_OPTS_STAGE3@
110
111 # Settings:
112 #==========
113
114 # We are in the process of moving the settings file from being entirely
115 # generated by configure, to generated being by the build system. Many of these
116 # might become redundant.
117
118 gcc-extra-via-c-opts = @GccExtraViaCOpts@
119 ld-has-no-compact-unwind = @LdHasNoCompactUnwind@
120 ld-has-build-id = @LdHasBuildId@
121 ld-has-filelist = @LdHasFilelist@
122 ld-is-gnu-ld = @LdIsGNULd@
123 ar-args = @ArArgs@
124
125 settings-c-compiler-command = @SettingsCCompilerCommand@
126 settings-haskell-cpp-command = @SettingsHaskellCPPCommand@
127 settings-haskell-cpp-flags = @SettingsHaskellCPPFlags@
128 settings-c-compiler-flags = @SettingsCCompilerFlags@
129 settings-c-compiler-link-flags = @SettingsCCompilerLinkFlags@
130 settings-c-compiler-supports-no-pie = @SettingsCCompilerSupportsNoPie@
131 settings-ld-command = @SettingsLdCommand@
132 settings-ld-flags = @SettingsLdFlags@
133 settings-ar-command = @SettingsArCommand@
134 settings-ranlib-command = @SettingsRanlibCommand@
135 settings-dll-wrap-command = @SettingsDllWrapCommand@
136 settings-windres-command = @SettingsWindresCommand@
137 settings-libtool-command = @SettingsLibtoolCommand@
138 settings-touch-command = @SettingsTouchCommand@
139 settings-clang-command = @SettingsClangCommand@
140 settings-llc-command = @SettingsLlcCommand@
141 settings-opt-command = @SettingsOptCommand@
142
143 haskell-target-os = @HaskellTargetOs@
144 haskell-target-arch = @HaskellTargetArch@
145 target-word-size = @TargetWordSize@
146 haskell-have-gnu-nonexec-stack = @HaskellHaveGnuNonexecStack@
147 haskell-have-ident-directive = @HaskellHaveIdentDirective@
148 haskell-have-subsections-via-symbols = @HaskellHaveSubsectionsViaSymbols@
149 haskell-have-rts-linker = @HaskellHaveRTSLinker@
150
151 # Include and library directories:
152 #=================================
153
154 curses-lib-dir    = @CURSES_LIB_DIRS@
155
156 iconv-include-dir = @ICONV_INCLUDE_DIRS@
157 iconv-lib-dir     = @ICONV_LIB_DIRS@
158
159 intree-gmp              = @GMP_FORCE_INTREE@
160 gmp-framework-preferred = @GMP_PREFER_FRAMEWORK@
161 gmp-include-dir         = @GMP_INCLUDE_DIRS@
162 gmp-lib-dir             = @GMP_LIB_DIRS@
163
164 use-system-ffi    = @UseSystemLibFFI@
165 ffi-include-dir   = @FFIIncludeDir@
166 ffi-lib-dir       = @FFILibDir@
167
168 # Optional Dependencies:
169 #=======================
170
171 with-libdw = @UseLibdw@
172 have-lib-mingw-ex = @HaveLibMingwEx@