-
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.
- Loading branch information
Showing
38 changed files
with
617 additions
and
270 deletions.
There are no files selected for viewing
File renamed without changes.
Empty file.
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
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,5 @@ | ||
set(CMAKE_ASM_COMPILER clang) | ||
set(CMAKE_C_COMPILER clang) | ||
set(CMAKE_CXX_COMPILER clang++) | ||
set(CMAKE_AR llvm-ar) | ||
set(CMAKE_RANLIB llvm-ranlib) |
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,5 @@ | ||
set(CMAKE_ASM_COMPILER gcc) | ||
set(CMAKE_C_COMPILER gcc) | ||
set(CMAKE_CXX_COMPILER g++) | ||
set(CMAKE_AR gcc-ar) | ||
set(CMAKE_RANLIB gcc-ranlib) |
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 @@ | ||
exec zig ar "$@" |
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 @@ | ||
@zig ar %* |
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,12 @@ | ||
# https://jcbhmr.me/blog/zig-cc-cmake | ||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_SYSTEM_PROCESSOR arm64) | ||
set(CMAKE_ASM_COMPILER zig cc) | ||
set(CMAKE_C_COMPILER zig cc) | ||
set(CMAKE_CXX_COMPILER zig c++) | ||
set(target arm64-linux-musl) | ||
set(CMAKE_ASM_COMPILER_TARGET "${target}") | ||
set(CMAKE_C_COMPILER_TARGET "${target}") | ||
set(CMAKE_CXX_COMPILER_TARGET "${target}") | ||
set(CMAKE_AR "${CMAKE_CURRENT_SOURCE_DIR}/zig-ar") | ||
set(CMAKE_RANLIB "${CMAKE_CURRENT_SOURCE_DIR}/zig-ranlib") |
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,12 @@ | ||
# https://jcbhmr.me/blog/zig-cc-cmake | ||
set(CMAKE_SYSTEM_NAME Darwin) | ||
set(CMAKE_SYSTEM_PROCESSOR arm64) | ||
set(CMAKE_ASM_COMPILER zig cc) | ||
set(CMAKE_C_COMPILER zig cc) | ||
set(CMAKE_CXX_COMPILER zig c++) | ||
set(target arm64-macos-none) | ||
set(CMAKE_ASM_COMPILER_TARGET "${target}") | ||
set(CMAKE_C_COMPILER_TARGET "${target}") | ||
set(CMAKE_CXX_COMPILER_TARGET "${target}") | ||
set(CMAKE_AR "${CMAKE_CURRENT_SOURCE_DIR}/zig-ar") | ||
set(CMAKE_RANLIB "${CMAKE_CURRENT_SOURCE_DIR}/zig-ranlib") |
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,12 @@ | ||
# https://jcbhmr.me/blog/zig-cc-cmake | ||
set(CMAKE_SYSTEM_NAME WASI) | ||
set(CMAKE_SYSTEM_PROCESSOR wasm32) | ||
set(CMAKE_ASM_COMPILER zig cc) | ||
set(CMAKE_C_COMPILER zig cc) | ||
set(CMAKE_CXX_COMPILER zig c++) | ||
set(target wasm32-wasi-musl) | ||
set(CMAKE_ASM_COMPILER_TARGET "${target}") | ||
set(CMAKE_C_COMPILER_TARGET "${target}") | ||
set(CMAKE_CXX_COMPILER_TARGET "${target}") | ||
set(CMAKE_AR "${CMAKE_CURRENT_SOURCE_DIR}/zig-ar") | ||
set(CMAKE_RANLIB "${CMAKE_CURRENT_SOURCE_DIR}/zig-ranlib") |
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,12 @@ | ||
# https://jcbhmr.me/blog/zig-cc-cmake | ||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_SYSTEM_PROCESSOR x86_64) | ||
set(CMAKE_ASM_COMPILER zig cc) | ||
set(CMAKE_C_COMPILER zig cc) | ||
set(CMAKE_CXX_COMPILER zig c++) | ||
set(target x86_64-linux-musl) | ||
set(CMAKE_ASM_COMPILER_TARGET "${target}") | ||
set(CMAKE_C_COMPILER_TARGET "${target}") | ||
set(CMAKE_CXX_COMPILER_TARGET "${target}") | ||
set(CMAKE_AR "${CMAKE_CURRENT_SOURCE_DIR}/zig-ar") | ||
set(CMAKE_RANLIB "${CMAKE_CURRENT_SOURCE_DIR}/zig-ranlib") |
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,12 @@ | ||
# https://jcbhmr.me/blog/zig-cc-cmake | ||
set(CMAKE_SYSTEM_NAME Darwin) | ||
set(CMAKE_SYSTEM_PROCESSOR x86_64) | ||
set(CMAKE_ASM_COMPILER zig cc) | ||
set(CMAKE_C_COMPILER zig cc) | ||
set(CMAKE_CXX_COMPILER zig c++) | ||
set(target x86_64-macos-none) | ||
set(CMAKE_ASM_COMPILER_TARGET "${target}") | ||
set(CMAKE_C_COMPILER_TARGET "${target}") | ||
set(CMAKE_CXX_COMPILER_TARGET "${target}") | ||
set(CMAKE_AR "${CMAKE_CURRENT_SOURCE_DIR}/zig-ar") | ||
set(CMAKE_RANLIB "${CMAKE_CURRENT_SOURCE_DIR}/zig-ranlib") |
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,12 @@ | ||
# https://jcbhmr.me/blog/zig-cc-cmake | ||
set(CMAKE_SYSTEM_NAME Windows) | ||
set(CMAKE_SYSTEM_PROCESSOR x86_64) | ||
set(CMAKE_ASM_COMPILER zig cc) | ||
set(CMAKE_C_COMPILER zig cc) | ||
set(CMAKE_CXX_COMPILER zig c++) | ||
set(target x86_64-windows-gnu) | ||
set(CMAKE_ASM_COMPILER_TARGET "${target}") | ||
set(CMAKE_C_COMPILER_TARGET "${target}") | ||
set(CMAKE_CXX_COMPILER_TARGET "${target}") | ||
set(CMAKE_AR "${CMAKE_CURRENT_SOURCE_DIR}/zig-ar") | ||
set(CMAKE_RANLIB "${CMAKE_CURRENT_SOURCE_DIR}/zig-ranlib") |
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 @@ | ||
exec zig ranlib "$@" |
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 @@ | ||
@zig ranlib %* |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#pragma once | ||
#undef unix | ||
#include <filesystem> | ||
#include <string> | ||
#include <string_view> | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,18 @@ | ||
#pragma once | ||
#include <string> | ||
#include <filesystem> | ||
#include <optional> | ||
#include <variant> | ||
#include "api.h" | ||
|
||
namespace platformdirs { | ||
namespace cosmopolitan { | ||
|
||
class cosmopolitan : public platformdirs::api::platform_dirs_abc { | ||
|
||
|
||
|
||
} | ||
|
||
} // namespace cosmopolitan | ||
} // namespace platformdirs |
Oops, something went wrong.