mirror of
https://github.com/simplex-chat/haskell.nix.git
synced 2026-06-03 09:17:32 +00:00
82bc945818
Fixes Windows cross compilation for GHC 9.0 and 9.2. Updates wine to use the version that is included with the chosen Nixpkgs (it used to be pinned to an older version). Moves the configuration of the GHC source into the GHC derivation. This should make adding Hadrian support easier. Propagates library dependences (not just pkgconfig ones) on windows so that any DLLs in those libraries can be copied for TH evaluation and to the `/bin` directory of executable components. Adds gcc and mfcgthreads as library dependencies on Windows so that the DLLs they include will be found. Use `$pkgsHostTarget` (instead of `ghc-pkg`) to find all the DLLs can copy them to the `/bin` directory of executable components. Adds support for __int128_t and __uint128_t to language-c to fix aarch64-darwin builds. Fixed reinstalling packages that come with patched versions in ghcjs.
19 lines
481 B
C
19 lines
481 B
C
// Just enoough windows.h stuff to make rts headers usable when building GHC cross compiler.
|
|
// See compiler/ghc/default.nix for where this is used.
|
|
#ifndef _WINDOWS_
|
|
#define _WINDOWS_
|
|
|
|
#define __stdcall
|
|
|
|
typedef unsigned long DWORD;
|
|
typedef void * PVOID;
|
|
|
|
typedef struct _RTL_CONDITION_VARIABLE { PVOID Ptr; } RTL_CONDITION_VARIABLE;
|
|
typedef RTL_CONDITION_VARIABLE CONDITION_VARIABLE;
|
|
|
|
typedef struct _RTL_SRWLOCK { PVOID Ptr; } RTL_SRWLOCK;
|
|
typedef RTL_SRWLOCK SRWLOCK;
|
|
|
|
#endif
|
|
|