forked from haskell/cabal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There were two failing tests: 1. CCompilerOverride, was attempting to use gcc.exe rather than clang.exe without also overriding the C options which led to incorrect options being passed to gcc.exe. The fix is to override to clang.exe on ghc-9.4 or newer. 2. ForeignLibs exposes a bug in GHC (https://gitlab.haskell.org/ghc/ghc/-/issues/24185) and hence is skipped for GHCs newer than 9.4 where it was first introduced. Towards fixing haskell#8451, we just need to fix the shared library issue now.
- Loading branch information
1 parent
21b858f
commit 0a177f3
Showing
4 changed files
with
24 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -166,15 +166,13 @@ jobs: | |
# Have to disable *-suite validation: | ||
# - the [email protected] problem is tracked at https://github.com/haskell/cabal/issues/8858 | ||
# - but curently can't run it with GHC 9.6, tracking: https://github.com/haskell/cabal/issues/8883 | ||
if: (runner.os != 'Windows') || (matrix.ghc != '9.6.3') | ||
run: sh validate.sh $FLAGS -s lib-suite | ||
|
||
- name: Validate cli-tests | ||
run: sh validate.sh $FLAGS -s cli-tests | ||
|
||
- name: Validate cli-suite | ||
# Have to disable *-suite validation, see above the comment for lib-suite | ||
if: (runner.os != 'Windows') || (matrix.ghc != '9.6.3') | ||
run: sh validate.sh $FLAGS -s cli-suite | ||
|
||
validate-old-ghcs: | ||
|
11 changes: 11 additions & 0 deletions
11
cabal-testsuite/PackageTests/CCompilerOverride/custom-cc-clang.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@echo OFF | ||
|
||
where /q clang.exe | ||
|
||
IF %ERRORLEVEL% EQU 0 ( | ||
call clang.exe -DNOERROR6 %* | ||
EXIT /B %ERRORLEVEL% | ||
) | ||
|
||
ECHO "Cannot find C compiler" | ||
EXIT /B 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters