diff options
author | Ben Gamari <ben@smart-cactus.org> | 2022-03-23 15:53:06 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-05-17 00:25:02 -0400 |
commit | fb579e15c56994bc6c4cc266535024f20a81f830 (patch) | |
tree | cceee15e84d67bdbbe6eced0a4e89449a416bcc4 /m4/fp_settings.m4 | |
parent | 8dfea0789957278b99bf302dfb24078fff84b6d2 (diff) | |
download | haskell-fb579e15c56994bc6c4cc266535024f20a81f830.tar.gz |
driver: Introduce pgmcxx
Here we introduce proper support for compilation of C++ objects. This
includes:
* logic in `configure` to detect the C++ toolchain and propagating this
information into the `settings` file
* logic in the driver to use the C++ toolchain when compiling C++
sources
Diffstat (limited to 'm4/fp_settings.m4')
-rw-r--r-- | m4/fp_settings.m4 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/m4/fp_settings.m4 b/m4/fp_settings.m4 index dbacd3a816..0b75cf8d35 100644 --- a/m4/fp_settings.m4 +++ b/m4/fp_settings.m4 @@ -11,6 +11,7 @@ AC_DEFUN([FP_SETTINGS], mingw_bin_prefix='$$tooldir/mingw/bin/' SettingsCCompilerCommand="${mingw_bin_prefix}clang.exe" SettingsCCompilerFlags="$CONF_CC_OPTS_STAGE2" + SettingsCxxCompilerCommand="${mingw_bin_prefix}clang++.exe" SettingsCxxCompilerFlags="$CONF_CXX_OPTS_STAGE2" SettingsCCompilerLinkFlags="$CONF_GCC_LINKER_OPTS_STAGE2" SettingsHaskellCPPCommand="${mingw_bin_prefix}clang.exe" @@ -32,6 +33,7 @@ AC_DEFUN([FP_SETTINGS], SettingsCCompilerCommand="$CC" SettingsCCompilerFlags="$CONF_CC_OPTS_STAGE2" + SettingsCxxCompilerCommand="$CXX" SettingsCxxCompilerFlags="$CONF_CXX_OPTS_STAGE2" SettingsHaskellCPPCommand="$HaskellCPPCmd" SettingsHaskellCPPFlags="$HaskellCPPArgs" @@ -104,6 +106,7 @@ AC_DEFUN([FP_SETTINGS], SettingsCCompilerSupportsNoPie="$CONF_GCC_SUPPORTS_NO_PIE" AC_SUBST(SettingsCCompilerCommand) + AC_SUBST(SettingsCxxCompilerCommand) AC_SUBST(SettingsHaskellCPPCommand) AC_SUBST(SettingsHaskellCPPFlags) AC_SUBST(SettingsCCompilerFlags) |