Try to get zig to compile lmao

It works but holy hell its crashy so far
This commit is contained in:
NepDisk 2025-12-09 15:15:23 -05:00
parent 75ecc81e23
commit b058fef648
4 changed files with 11 additions and 0 deletions

View file

@ -19,6 +19,7 @@
#include <cstring>
#include <functional>
#include <memory>
#include <istream>
//----------------------------------------------------------------------------|

View file

@ -2,6 +2,7 @@
#define __SRB2_CXXUTIL_HPP__
#include <cstdlib>
#include <cmath>
#include <type_traits>
#include <utility>

View file

@ -16,6 +16,7 @@ http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/n4820.pdf
#include <cstddef>
#include <cstdint>
#include <type_traits>
#include <exception>
#ifndef TCB_SPAN_NO_EXCEPTIONS
// Attempt to discover whether we're being compiled with exception support

8
toolchain/LinuxZig.cmake Normal file
View file

@ -0,0 +1,8 @@
# which compilers to use for C and C++
set(CMAKE_C_COMPILER zig cc)
set(CMAKE_CXX_COMPILER zig c++)
set(CMAKE_C_COMPILER_TARGET ${TARGET})
set(CMAKE_CXX_COMPILER_TARGET ${TARGET})
set(CMAKE_C_LINKER_DEPFILE_SUPPORTED FALSE)
set(CMAKE_CXX_LINKER_DEPFILE_SUPPORTED FALSE)