lib.systems: Add examples & helpers for MSVC
This commit is contained in:
@@ -120,6 +120,8 @@ let
|
|||||||
libc =
|
libc =
|
||||||
if final.isDarwin then
|
if final.isDarwin then
|
||||||
"libSystem"
|
"libSystem"
|
||||||
|
else if final.isMsvc then
|
||||||
|
"ucrt"
|
||||||
else if final.isMinGW then
|
else if final.isMinGW then
|
||||||
"msvcrt"
|
"msvcrt"
|
||||||
else if final.isWasi then
|
else if final.isWasi then
|
||||||
|
|||||||
@@ -372,6 +372,17 @@ rec {
|
|||||||
useLLVM = true;
|
useLLVM = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Target the MSVC ABI
|
||||||
|
x86_64-windows = {
|
||||||
|
config = "x86_64-pc-windows-msvc";
|
||||||
|
useLLVM = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
aarch64-windows = {
|
||||||
|
config = "aarch64-pc-windows-msvc";
|
||||||
|
useLLVM = true;
|
||||||
|
};
|
||||||
|
|
||||||
# BSDs
|
# BSDs
|
||||||
|
|
||||||
aarch64-freebsd = {
|
aarch64-freebsd = {
|
||||||
|
|||||||
@@ -344,6 +344,10 @@ rec {
|
|||||||
kernel = kernels.windows;
|
kernel = kernels.windows;
|
||||||
abi = abis.gnu;
|
abi = abis.gnu;
|
||||||
};
|
};
|
||||||
|
isMsvc = {
|
||||||
|
kernel = kernels.windows;
|
||||||
|
abi = abis.msvc;
|
||||||
|
};
|
||||||
isWasi = {
|
isWasi = {
|
||||||
kernel = kernels.wasi;
|
kernel = kernels.wasi;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user