2016-02-01 14:26:01 -08:00
|
|
|
cmake_minimum_required(VERSION 2.8.5)
|
2015-08-05 15:23:15 -07:00
|
|
|
|
2016-02-01 14:26:01 -08:00
|
|
|
if(NOT CMAKE_BUILD_TYPE)
|
|
|
|
set(CMAKE_BUILD_TYPE "Debug" CACHE STRING
|
|
|
|
"Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE)
|
|
|
|
endif()
|
2015-08-05 15:23:15 -07:00
|
|
|
|
2018-04-10 17:57:37 -07:00
|
|
|
if(NOT CMAKE_INSTALL_PREFIX)
|
|
|
|
set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}" CACHE STRING
|
|
|
|
"Directory to install zig to" FORCE)
|
|
|
|
endif()
|
|
|
|
|
2017-04-21 08:06:15 -07:00
|
|
|
project(zig C CXX)
|
2015-08-05 15:23:15 -07:00
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
|
|
|
|
|
2017-10-01 15:34:22 -07:00
|
|
|
|
2015-08-05 15:46:40 -07:00
|
|
|
set(ZIG_VERSION_MAJOR 0)
|
2018-09-28 06:03:40 -07:00
|
|
|
set(ZIG_VERSION_MINOR 3)
|
2018-03-15 06:15:05 -07:00
|
|
|
set(ZIG_VERSION_PATCH 0)
|
2015-08-05 15:23:15 -07:00
|
|
|
set(ZIG_VERSION "${ZIG_VERSION_MAJOR}.${ZIG_VERSION_MINOR}.${ZIG_VERSION_PATCH}")
|
2017-10-01 15:34:22 -07:00
|
|
|
|
|
|
|
find_program(GIT_EXE NAMES git)
|
|
|
|
if(GIT_EXE)
|
|
|
|
execute_process(
|
2018-06-29 19:22:04 -07:00
|
|
|
COMMAND ${GIT_EXE} -C ${CMAKE_SOURCE_DIR} name-rev HEAD --tags --name-only --no-undefined --always
|
2017-10-01 15:34:22 -07:00
|
|
|
OUTPUT_VARIABLE ZIG_GIT_REV
|
|
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
2017-10-17 05:47:27 -07:00
|
|
|
if(ZIG_GIT_REV MATCHES "\\^0$")
|
2017-10-01 15:34:22 -07:00
|
|
|
if(NOT("${ZIG_GIT_REV}" STREQUAL "${ZIG_VERSION}^0"))
|
|
|
|
message("WARNING: Tag does not match configured Zig version")
|
|
|
|
endif()
|
|
|
|
else()
|
2018-06-15 11:06:56 -07:00
|
|
|
set(ZIG_VERSION "${ZIG_VERSION}+${ZIG_GIT_REV}")
|
2017-10-01 15:34:22 -07:00
|
|
|
endif()
|
|
|
|
endif()
|
2015-08-05 15:23:15 -07:00
|
|
|
message("Configuring zig version ${ZIG_VERSION}")
|
|
|
|
|
2018-03-30 10:20:13 -07:00
|
|
|
set(ZIG_STATIC off CACHE BOOL "Attempt to build a static zig executable (not compatible with glibc)")
|
2016-02-11 00:33:27 -08:00
|
|
|
|
2017-10-01 13:10:05 -07:00
|
|
|
string(REGEX REPLACE "\\\\" "\\\\\\\\" ZIG_LIBC_LIB_DIR_ESCAPED "${ZIG_LIBC_LIB_DIR}")
|
|
|
|
string(REGEX REPLACE "\\\\" "\\\\\\\\" ZIG_LIBC_STATIC_LIB_DIR_ESCAPED "${ZIG_LIBC_STATIC_LIB_DIR}")
|
|
|
|
string(REGEX REPLACE "\\\\" "\\\\\\\\" ZIG_LIBC_INCLUDE_DIR_ESCAPED "${ZIG_LIBC_INCLUDE_DIR}")
|
2017-10-01 11:01:18 -07:00
|
|
|
|
2016-04-23 09:57:38 -07:00
|
|
|
option(ZIG_TEST_COVERAGE "Build Zig with test coverage instrumentation" OFF)
|
|
|
|
|
2017-08-28 00:12:23 -07:00
|
|
|
# To see what patches have been applied to LLD in this repository:
|
|
|
|
# git log -p -- deps/lld
|
|
|
|
option(ZIG_FORCE_EXTERNAL_LLD "If your system has the LLD patches use it instead of the embedded LLD" OFF)
|
2016-02-11 00:33:27 -08:00
|
|
|
|
2017-09-12 21:17:19 -07:00
|
|
|
find_package(llvm)
|
|
|
|
find_package(clang)
|
2016-01-18 20:28:54 -08:00
|
|
|
|
2018-09-30 13:45:33 -07:00
|
|
|
if(APPLE AND ZIG_STATIC)
|
|
|
|
list(REMOVE_ITEM LLVM_LIBRARIES "-lz")
|
|
|
|
list(REMOVE_ITEM LLVM_LIBRARIES "-lcurses")
|
2018-03-20 04:46:31 -07:00
|
|
|
find_library(ZLIB NAMES z zlib libz)
|
2018-09-30 13:45:33 -07:00
|
|
|
find_library(LIBNCURSES NAMES libncurses.a)
|
|
|
|
list(APPEND LLVM_LIBRARIES "${LIBNCURSES}" "${ZLIB}")
|
2018-03-20 04:46:31 -07:00
|
|
|
endif()
|
|
|
|
|
2017-12-26 16:44:08 -08:00
|
|
|
set(ZIG_CPP_LIB_DIR "${CMAKE_BINARY_DIR}/zig_cpp")
|
|
|
|
|
2017-08-28 00:12:23 -07:00
|
|
|
if(ZIG_FORCE_EXTERNAL_LLD)
|
|
|
|
find_package(lld)
|
2017-12-01 10:44:28 -08:00
|
|
|
include_directories(${LLVM_INCLUDE_DIRS})
|
2017-08-28 00:12:23 -07:00
|
|
|
include_directories(${LLD_INCLUDE_DIRS})
|
2017-12-01 10:44:28 -08:00
|
|
|
include_directories(${CLANG_INCLUDE_DIRS})
|
2017-08-28 00:12:23 -07:00
|
|
|
else()
|
2017-12-01 10:44:28 -08:00
|
|
|
# This goes first so that we find embedded LLD instead
|
|
|
|
# of system LLD.
|
|
|
|
include_directories("${CMAKE_SOURCE_DIR}/deps/lld/include")
|
|
|
|
|
|
|
|
include_directories(${LLVM_INCLUDE_DIRS})
|
|
|
|
include_directories(${CLANG_INCLUDE_DIRS})
|
2017-08-28 00:12:23 -07:00
|
|
|
set(EMBEDDED_LLD_LIB_SOURCES
|
2018-01-17 14:29:21 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/Common/Args.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/Common/ErrorHandler.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/Common/Memory.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/Common/Reproduce.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/Common/Strings.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/Common/TargetOptionsCommandFlags.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/Common/Threads.cpp"
|
2018-08-04 15:09:19 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/Common/Timer.cpp"
|
2018-01-17 14:29:21 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/Common/Version.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/Core/DefinedAtom.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/Core/Error.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/Core/File.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/Core/LinkingContext.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/Core/Reader.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/Core/Resolver.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/Core/SymbolTable.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/Core/Writer.cpp"
|
2017-08-28 00:12:23 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/Driver/DarwinLdDriver.cpp"
|
2018-01-17 14:29:21 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/ReaderWriter/FileArchive.cpp"
|
2017-08-28 00:12:23 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/ReaderWriter/MachO/ArchHandler.cpp"
|
2018-01-17 14:29:21 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/ReaderWriter/MachO/ArchHandler_arm.cpp"
|
2017-08-28 00:12:23 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/ReaderWriter/MachO/ArchHandler_arm64.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/ReaderWriter/MachO/ArchHandler_x86.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/ReaderWriter/MachO/ArchHandler_x86_64.cpp"
|
2018-01-17 14:29:21 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/ReaderWriter/MachO/CompactUnwindPass.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/ReaderWriter/MachO/GOTPass.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/ReaderWriter/MachO/LayoutPass.cpp"
|
2017-08-28 00:12:23 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp"
|
2018-01-17 14:29:21 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryReader.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/ReaderWriter/MachO/ObjCPass.cpp"
|
2017-08-28 00:12:23 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/ReaderWriter/MachO/ShimPass.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/ReaderWriter/MachO/StubsPass.cpp"
|
2018-01-17 14:29:21 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/ReaderWriter/MachO/TLVPass.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/ReaderWriter/MachO/WriterMachO.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp"
|
2017-08-28 00:12:23 -07:00
|
|
|
)
|
|
|
|
set(EMBEDDED_LLD_ELF_SOURCES
|
2018-01-17 14:29:21 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/AArch64ErrataFix.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/Arch/AArch64.cpp"
|
2017-08-28 00:12:23 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/Arch/AMDGPU.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/Arch/ARM.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/Arch/AVR.cpp"
|
2018-08-04 15:09:19 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/Arch/Hexagon.cpp"
|
2017-08-28 00:12:23 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/Arch/Mips.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/Arch/MipsArchTree.cpp"
|
2018-01-17 14:29:21 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/Arch/PPC.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/Arch/PPC64.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/Arch/SPARCV9.cpp"
|
2017-08-28 00:12:23 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/Arch/X86.cpp"
|
2018-01-17 14:29:21 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/Arch/X86_64.cpp"
|
2018-08-04 15:09:19 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/CallGraphSort.cpp"
|
2017-08-28 00:12:23 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/Driver.cpp"
|
2018-01-17 14:29:21 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/DriverUtils.cpp"
|
2017-08-28 00:12:23 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/EhFrame.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/Filesystem.cpp"
|
2018-01-17 14:29:21 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/GdbIndex.cpp"
|
2017-08-28 00:12:23 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/ICF.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/InputFiles.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/InputSection.cpp"
|
2018-01-17 14:29:21 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/LTO.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/LinkerScript.cpp"
|
2017-08-28 00:12:23 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/MapFile.cpp"
|
2018-01-17 14:29:21 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/MarkLive.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/OutputSections.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/Relocations.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/ScriptLexer.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/ScriptParser.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/SymbolTable.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/Symbols.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/SyntheticSections.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/Target.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/Thunks.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF/Writer.cpp"
|
2017-08-28 00:12:23 -07:00
|
|
|
)
|
2018-01-17 14:29:21 -08:00
|
|
|
|
2017-08-28 00:12:23 -07:00
|
|
|
set(EMBEDDED_LLD_COFF_SOURCES
|
2018-01-17 14:29:21 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/COFF/Chunks.cpp"
|
2017-08-28 00:12:23 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/COFF/DLL.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/COFF/Driver.cpp"
|
2018-01-17 14:29:21 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/COFF/DriverUtils.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/COFF/ICF.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/COFF/InputFiles.cpp"
|
2017-08-28 00:12:23 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/COFF/LTO.cpp"
|
2018-01-17 14:29:21 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/COFF/MapFile.cpp"
|
2017-08-28 00:12:23 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/COFF/MarkLive.cpp"
|
2018-01-17 14:29:21 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/COFF/MinGW.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/COFF/PDB.cpp"
|
2017-08-28 00:12:23 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/COFF/SymbolTable.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/COFF/Symbols.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/COFF/Writer.cpp"
|
2018-01-17 14:29:21 -08:00
|
|
|
)
|
|
|
|
set(EMBEDDED_LLD_MINGW_SOURCES
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/MinGW/Driver.cpp"
|
|
|
|
)
|
|
|
|
set(EMBEDDED_LLD_WASM_SOURCES
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/wasm/Driver.cpp"
|
2018-08-04 15:09:19 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/wasm/InputChunks.cpp"
|
2018-01-17 14:29:21 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/wasm/InputFiles.cpp"
|
2018-08-04 15:09:19 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/wasm/LTO.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/wasm/MarkLive.cpp"
|
2018-01-17 14:29:21 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/wasm/OutputSections.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/wasm/SymbolTable.cpp"
|
2018-08-04 15:09:19 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/wasm/Symbols.cpp"
|
2018-01-17 14:29:21 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/wasm/Writer.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/wasm/WriterUtils.cpp"
|
2017-08-28 00:12:23 -07:00
|
|
|
)
|
|
|
|
add_library(embedded_lld_lib ${EMBEDDED_LLD_LIB_SOURCES})
|
|
|
|
add_library(embedded_lld_elf ${EMBEDDED_LLD_ELF_SOURCES})
|
|
|
|
add_library(embedded_lld_coff ${EMBEDDED_LLD_COFF_SOURCES})
|
2018-01-17 14:29:21 -08:00
|
|
|
add_library(embedded_lld_mingw ${EMBEDDED_LLD_MINGW_SOURCES})
|
|
|
|
add_library(embedded_lld_wasm ${EMBEDDED_LLD_WASM_SOURCES})
|
2017-09-12 21:17:19 -07:00
|
|
|
if(MSVC)
|
2017-10-16 06:10:20 -07:00
|
|
|
set(ZIG_LLD_COMPILE_FLAGS "-std=c++11 -D_CRT_SECURE_NO_WARNINGS /w")
|
2017-09-12 21:17:19 -07:00
|
|
|
else()
|
2018-09-05 07:18:12 -07:00
|
|
|
set(ZIG_LLD_COMPILE_FLAGS "-std=c++11 -fno-exceptions -fno-rtti -Wno-comment")
|
2018-09-29 23:34:38 -07:00
|
|
|
if(MINGW)
|
|
|
|
set(ZIG_LLD_COMPILE_FLAGS "${ZIG_LLD_COMPILE_FLAGS} -D__STDC_FORMAT_MACROS -D__USE_MINGW_ANSI_STDIO -Wno-pedantic-ms-format")
|
|
|
|
endif()
|
2017-09-10 13:05:18 -07:00
|
|
|
endif()
|
2017-08-28 00:12:23 -07:00
|
|
|
set_target_properties(embedded_lld_lib PROPERTIES
|
2017-09-12 21:17:19 -07:00
|
|
|
COMPILE_FLAGS ${ZIG_LLD_COMPILE_FLAGS}
|
2017-08-28 00:12:23 -07:00
|
|
|
LINK_FLAGS " "
|
|
|
|
)
|
|
|
|
set_target_properties(embedded_lld_elf PROPERTIES
|
2017-09-12 21:17:19 -07:00
|
|
|
COMPILE_FLAGS ${ZIG_LLD_COMPILE_FLAGS}
|
2017-08-28 00:12:23 -07:00
|
|
|
LINK_FLAGS " "
|
|
|
|
)
|
|
|
|
set_target_properties(embedded_lld_coff PROPERTIES
|
2017-09-12 21:17:19 -07:00
|
|
|
COMPILE_FLAGS ${ZIG_LLD_COMPILE_FLAGS}
|
2017-08-28 00:12:23 -07:00
|
|
|
LINK_FLAGS " "
|
|
|
|
)
|
2018-01-17 14:29:21 -08:00
|
|
|
set_target_properties(embedded_lld_mingw PROPERTIES
|
|
|
|
COMPILE_FLAGS ${ZIG_LLD_COMPILE_FLAGS}
|
|
|
|
LINK_FLAGS " "
|
|
|
|
)
|
|
|
|
set_target_properties(embedded_lld_wasm PROPERTIES
|
|
|
|
COMPILE_FLAGS ${ZIG_LLD_COMPILE_FLAGS}
|
|
|
|
LINK_FLAGS " "
|
|
|
|
)
|
2018-02-02 06:49:31 -08:00
|
|
|
target_include_directories(embedded_lld_lib PRIVATE
|
2017-08-28 00:12:23 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/include"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld-prebuilt"
|
|
|
|
)
|
2018-02-02 06:49:31 -08:00
|
|
|
target_include_directories(embedded_lld_elf PRIVATE
|
2017-08-28 00:12:23 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/ELF"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/include"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld-prebuilt/ELF"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld-prebuilt"
|
|
|
|
)
|
2018-02-02 06:49:31 -08:00
|
|
|
target_include_directories(embedded_lld_coff PRIVATE
|
2017-08-28 00:12:23 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/COFF"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/include"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld-prebuilt/COFF"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld-prebuilt"
|
|
|
|
)
|
2018-02-07 14:27:30 -08:00
|
|
|
target_include_directories(embedded_lld_mingw PRIVATE
|
2018-01-17 14:29:21 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/MinGW"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/include"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld-prebuilt/MinGW"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld-prebuilt"
|
|
|
|
)
|
2018-02-07 14:27:30 -08:00
|
|
|
target_include_directories(embedded_lld_wasm PRIVATE
|
2018-01-17 14:29:21 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/wasm"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld/include"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld-prebuilt/wasm"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/lld-prebuilt"
|
|
|
|
)
|
2017-08-28 00:12:23 -07:00
|
|
|
set(LLD_INCLUDE_DIRS "")
|
|
|
|
set(LLD_LIBRARIES
|
|
|
|
embedded_lld_elf
|
|
|
|
embedded_lld_coff
|
2018-01-17 14:29:21 -08:00
|
|
|
embedded_lld_mingw
|
|
|
|
embedded_lld_wasm
|
2017-08-28 00:34:50 -07:00
|
|
|
embedded_lld_lib
|
2017-08-28 00:12:23 -07:00
|
|
|
)
|
2018-01-17 14:29:21 -08:00
|
|
|
install(TARGETS embedded_lld_elf embedded_lld_coff embedded_lld_mingw embedded_lld_wasm embedded_lld_lib DESTINATION "${ZIG_CPP_LIB_DIR}")
|
2017-08-28 00:12:23 -07:00
|
|
|
endif()
|
2017-03-13 08:54:56 -07:00
|
|
|
|
2018-03-09 12:06:06 -08:00
|
|
|
# No patches have been applied to SoftFloat-3e
|
2017-09-13 22:44:22 -07:00
|
|
|
set(EMBEDDED_SOFTFLOAT_SOURCES
|
2018-03-09 12:06:06 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/8086/f128M_isSignalingNaN.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/8086/s_commonNaNToF128M.c"
|
2018-06-27 07:20:04 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/8086/s_commonNaNToF16UI.c"
|
2018-03-09 12:06:06 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/8086/s_commonNaNToF32UI.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/8086/s_commonNaNToF64UI.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/8086/s_f128MToCommonNaN.c"
|
2018-06-27 07:20:04 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/8086/s_f16UIToCommonNaN.c"
|
2018-03-09 12:06:06 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/8086/s_f32UIToCommonNaN.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/8086/s_f64UIToCommonNaN.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/8086/s_propagateNaNF128M.c"
|
2018-06-27 07:20:04 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/8086/s_propagateNaNF16UI.c"
|
2018-03-09 12:06:06 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/8086/softfloat_raiseFlags.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f128M_add.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f128M_div.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f128M_eq.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f128M_eq_signaling.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f128M_le.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f128M_le_quiet.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f128M_lt.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f128M_lt_quiet.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f128M_mul.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f128M_mulAdd.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f128M_rem.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f128M_roundToInt.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f128M_sqrt.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f128M_sub.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f128M_to_f16.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f128M_to_f32.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f128M_to_f64.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f128M_to_i32.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f128M_to_i32_r_minMag.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f128M_to_i64.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f128M_to_i64_r_minMag.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f128M_to_ui32.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f128M_to_ui32_r_minMag.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f128M_to_ui64.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f128M_to_ui64_r_minMag.c"
|
2018-06-27 07:20:04 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f16_add.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f16_div.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f16_eq.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f16_lt.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f16_mul.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f16_rem.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f16_roundToInt.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f16_sqrt.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f16_sub.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f16_to_f128M.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f16_to_f64.c"
|
2018-03-09 12:06:06 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f32_to_f128M.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f64_to_f128M.c"
|
2018-06-27 07:20:04 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/f64_to_f16.c"
|
2018-03-09 12:06:06 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_add256M.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_addCarryM.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_addComplCarryM.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_addF128M.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_addM.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_addMagsF16.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_addMagsF32.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_addMagsF64.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_approxRecip32_1.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_approxRecipSqrt32_1.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_approxRecipSqrt_1Ks.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_approxRecip_1Ks.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_compare128M.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_compare96M.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_countLeadingZeros16.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_countLeadingZeros32.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_countLeadingZeros64.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_countLeadingZeros8.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_eq128.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_invalidF128M.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_isNaNF128M.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_le128.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_lt128.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_mul128MTo256M.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_mul64To128M.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_mulAddF128M.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_mulAddF16.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_mulAddF32.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_mulAddF64.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_negXM.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_normRoundPackMToF128M.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_normRoundPackToF16.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_normRoundPackToF32.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_normRoundPackToF64.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_normSubnormalF128SigM.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_normSubnormalF16Sig.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_normSubnormalF32Sig.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_normSubnormalF64Sig.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_remStepMBy32.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_roundMToI64.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_roundMToUI64.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_roundPackMToF128M.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_roundPackToF16.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_roundPackToF32.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_roundPackToF64.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_roundToI32.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_roundToI64.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_roundToUI32.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_roundToUI64.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_shiftLeftM.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_shiftNormSigF128M.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_shiftRightJam256M.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_shiftRightJam32.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_shiftRightJam64.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_shiftRightJamM.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_shiftRightM.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_shortShiftLeft64To96M.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_shortShiftLeftM.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_shortShiftRightExtendM.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_shortShiftRightJam64.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_shortShiftRightJamM.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_shortShiftRightM.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_sub1XM.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_sub256M.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_subM.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_subMagsF16.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_subMagsF32.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_subMagsF64.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/s_tryPropagateNaNF128M.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/softfloat_state.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/ui32_to_f128M.c"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/ui64_to_f128M.c"
|
2017-09-13 22:44:22 -07:00
|
|
|
)
|
|
|
|
add_library(embedded_softfloat ${EMBEDDED_SOFTFLOAT_SOURCES})
|
|
|
|
if(MSVC)
|
|
|
|
set_target_properties(embedded_softfloat PROPERTIES
|
2017-10-16 06:10:20 -07:00
|
|
|
COMPILE_FLAGS "-std=c99 /w"
|
2017-09-13 22:44:22 -07:00
|
|
|
)
|
|
|
|
else()
|
|
|
|
set_target_properties(embedded_softfloat PROPERTIES
|
2018-09-10 06:46:15 -07:00
|
|
|
COMPILE_FLAGS "-std=c99 -O3"
|
2017-09-13 22:44:22 -07:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
target_include_directories(embedded_softfloat PUBLIC
|
2018-03-09 12:06:06 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e-prebuilt"
|
|
|
|
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/8086"
|
2015-08-05 15:46:40 -07:00
|
|
|
)
|
2018-03-09 12:06:06 -08:00
|
|
|
include_directories("${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e/source/include")
|
2017-09-13 22:44:22 -07:00
|
|
|
set(SOFTFLOAT_LIBRARIES embedded_softfloat)
|
|
|
|
|
|
|
|
find_package(Threads)
|
2015-08-05 15:46:40 -07:00
|
|
|
|
2015-08-05 15:23:15 -07:00
|
|
|
set(ZIG_SOURCES
|
2016-09-29 23:21:21 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/src/analyze.cpp"
|
2016-01-27 20:10:38 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/src/ast_render.cpp"
|
2017-06-26 11:41:47 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/src/bigfloat.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/src/bigint.cpp"
|
2016-09-29 23:21:21 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/src/buffer.cpp"
|
2016-04-21 15:48:13 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/src/c_tokenizer.cpp"
|
2018-09-10 06:46:15 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/src/cache_hash.cpp"
|
2015-11-30 18:58:53 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/src/codegen.cpp"
|
2018-09-10 14:30:45 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/src/compiler.cpp"
|
2016-09-29 23:21:21 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/src/errmsg.cpp"
|
2015-11-04 23:05:25 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/src/error.cpp"
|
2016-12-18 13:56:50 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/src/ir.cpp"
|
2016-09-30 17:12:00 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/src/ir_print.cpp"
|
2019-02-23 06:35:56 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/src/libc_installation.cpp"
|
2016-09-29 23:21:21 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/src/link.cpp"
|
2015-11-04 23:05:25 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/src/main.cpp"
|
2015-11-30 18:58:53 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/src/os.cpp"
|
2016-09-29 23:21:21 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/src/parser.cpp"
|
2017-05-07 09:07:35 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/src/range_set.cpp"
|
2016-09-29 23:21:21 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/src/target.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/src/tokenizer.cpp"
|
2015-11-04 23:05:25 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/src/util.cpp"
|
2017-11-24 11:56:05 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/src/translate_c.cpp"
|
2017-12-26 16:44:08 -08:00
|
|
|
)
|
2018-09-11 14:29:18 -07:00
|
|
|
set(BLAKE_SOURCES
|
|
|
|
"${CMAKE_SOURCE_DIR}/src/blake2b.c"
|
2018-09-10 06:46:15 -07:00
|
|
|
)
|
2017-12-26 16:44:08 -08:00
|
|
|
set(ZIG_CPP_SOURCES
|
2015-11-24 12:00:38 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/src/zig_llvm.cpp"
|
2019-02-16 12:14:51 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/src/zig_clang.cpp"
|
2019-02-24 09:53:28 -08:00
|
|
|
"${CMAKE_SOURCE_DIR}/src/zig_clang_driver.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/src/zig_clang_cc1_main.cpp"
|
|
|
|
"${CMAKE_SOURCE_DIR}/src/zig_clang_cc1as_main.cpp"
|
2018-07-20 20:37:37 -07:00
|
|
|
"${CMAKE_SOURCE_DIR}/src/windows_sdk.cpp"
|
2015-08-05 15:23:15 -07:00
|
|
|
)
|
|
|
|
|
2018-01-03 16:39:04 -08:00
|
|
|
set(ZIG_STD_FILES
|
|
|
|
"array_list.zig"
|
2019-03-02 13:46:04 -08:00
|
|
|
"atomic.zig"
|
2018-07-10 17:18:43 -07:00
|
|
|
"atomic/int.zig"
|
2018-07-11 16:38:01 -07:00
|
|
|
"atomic/queue.zig"
|
2018-05-06 22:04:43 -07:00
|
|
|
"atomic/stack.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
"base64.zig"
|
|
|
|
"buf_map.zig"
|
|
|
|
"buf_set.zig"
|
|
|
|
"buffer.zig"
|
|
|
|
"build.zig"
|
2019-02-26 15:10:40 -08:00
|
|
|
"build/fmt.zig"
|
2019-03-02 13:46:04 -08:00
|
|
|
"c.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
"c/darwin.zig"
|
2018-10-17 12:21:48 -07:00
|
|
|
"c/freebsd.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
"c/linux.zig"
|
2019-02-16 02:29:12 -08:00
|
|
|
"c/netbsd.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
"c/windows.zig"
|
2018-07-21 11:30:11 -07:00
|
|
|
"coff.zig"
|
2019-03-02 13:46:04 -08:00
|
|
|
"crypto.zig"
|
2018-05-06 22:04:43 -07:00
|
|
|
"crypto/blake2.zig"
|
2018-08-29 23:02:19 -07:00
|
|
|
"crypto/chacha20.zig"
|
2018-05-06 22:04:43 -07:00
|
|
|
"crypto/hmac.zig"
|
2018-01-12 17:40:21 -08:00
|
|
|
"crypto/md5.zig"
|
2019-02-01 09:22:21 -08:00
|
|
|
"crypto/poly1305.zig"
|
2018-01-12 17:40:21 -08:00
|
|
|
"crypto/sha1.zig"
|
2018-01-13 01:23:12 -08:00
|
|
|
"crypto/sha2.zig"
|
2018-01-16 22:40:50 -08:00
|
|
|
"crypto/sha3.zig"
|
2018-08-29 23:02:19 -07:00
|
|
|
"crypto/x25519.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
"cstr.zig"
|
2019-03-02 13:46:04 -08:00
|
|
|
"debug.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
"debug/failing_allocator.zig"
|
|
|
|
"dwarf.zig"
|
2018-06-16 14:01:23 -07:00
|
|
|
"dynamic_library.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
"elf.zig"
|
|
|
|
"empty.zig"
|
2018-04-08 21:52:45 -07:00
|
|
|
"event.zig"
|
2018-07-09 19:22:44 -07:00
|
|
|
"event/channel.zig"
|
2018-07-25 20:16:13 -07:00
|
|
|
"event/fs.zig"
|
2018-07-11 12:58:48 -07:00
|
|
|
"event/future.zig"
|
2018-07-10 12:17:01 -07:00
|
|
|
"event/group.zig"
|
2018-09-30 14:23:42 -07:00
|
|
|
"event/io.zig"
|
2018-07-09 19:22:44 -07:00
|
|
|
"event/lock.zig"
|
|
|
|
"event/locked.zig"
|
|
|
|
"event/loop.zig"
|
2018-09-30 07:37:58 -07:00
|
|
|
"event/net.zig"
|
2018-08-01 13:26:37 -07:00
|
|
|
"event/rwlock.zig"
|
|
|
|
"event/rwlocked.zig"
|
2019-03-02 13:46:04 -08:00
|
|
|
"fmt.zig"
|
|
|
|
"fmt/errol.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
"fmt/errol/enum3.zig"
|
|
|
|
"fmt/errol/lookup.zig"
|
2019-02-13 03:06:32 -08:00
|
|
|
"fmt/parse_float.zig"
|
2019-03-02 13:46:04 -08:00
|
|
|
"hash.zig"
|
2018-04-06 04:10:54 -07:00
|
|
|
"hash/adler.zig"
|
|
|
|
"hash/crc.zig"
|
|
|
|
"hash/fnv.zig"
|
|
|
|
"hash/siphash.zig"
|
2018-05-06 22:04:43 -07:00
|
|
|
"hash_map.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
"heap.zig"
|
|
|
|
"io.zig"
|
2018-12-02 15:35:41 -08:00
|
|
|
"io/seekable_stream.zig"
|
2018-05-01 23:04:40 -07:00
|
|
|
"json.zig"
|
2018-07-16 17:52:50 -07:00
|
|
|
"lazy_init.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
"linked_list.zig"
|
2018-02-19 14:06:54 -08:00
|
|
|
"macho.zig"
|
2019-03-02 13:46:04 -08:00
|
|
|
"math.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
"math/acos.zig"
|
|
|
|
"math/acosh.zig"
|
|
|
|
"math/asin.zig"
|
|
|
|
"math/asinh.zig"
|
|
|
|
"math/atan.zig"
|
|
|
|
"math/atan2.zig"
|
|
|
|
"math/atanh.zig"
|
2019-03-02 13:46:04 -08:00
|
|
|
"math/big.zig"
|
2018-06-08 15:24:20 -07:00
|
|
|
"math/big/int.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
"math/cbrt.zig"
|
|
|
|
"math/ceil.zig"
|
2019-03-02 13:46:04 -08:00
|
|
|
"math/complex.zig"
|
2018-05-06 22:04:43 -07:00
|
|
|
"math/complex/abs.zig"
|
|
|
|
"math/complex/acos.zig"
|
|
|
|
"math/complex/acosh.zig"
|
|
|
|
"math/complex/arg.zig"
|
|
|
|
"math/complex/asin.zig"
|
|
|
|
"math/complex/asinh.zig"
|
|
|
|
"math/complex/atan.zig"
|
|
|
|
"math/complex/atanh.zig"
|
|
|
|
"math/complex/conj.zig"
|
|
|
|
"math/complex/cos.zig"
|
|
|
|
"math/complex/cosh.zig"
|
|
|
|
"math/complex/exp.zig"
|
|
|
|
"math/complex/ldexp.zig"
|
|
|
|
"math/complex/log.zig"
|
|
|
|
"math/complex/pow.zig"
|
|
|
|
"math/complex/proj.zig"
|
|
|
|
"math/complex/sin.zig"
|
|
|
|
"math/complex/sinh.zig"
|
|
|
|
"math/complex/sqrt.zig"
|
|
|
|
"math/complex/tan.zig"
|
|
|
|
"math/complex/tanh.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
"math/copysign.zig"
|
|
|
|
"math/cos.zig"
|
|
|
|
"math/cosh.zig"
|
|
|
|
"math/exp.zig"
|
|
|
|
"math/exp2.zig"
|
|
|
|
"math/expm1.zig"
|
|
|
|
"math/expo2.zig"
|
|
|
|
"math/fabs.zig"
|
|
|
|
"math/floor.zig"
|
|
|
|
"math/fma.zig"
|
|
|
|
"math/frexp.zig"
|
|
|
|
"math/hypot.zig"
|
|
|
|
"math/ilogb.zig"
|
|
|
|
"math/inf.zig"
|
|
|
|
"math/isfinite.zig"
|
|
|
|
"math/isinf.zig"
|
|
|
|
"math/isnan.zig"
|
|
|
|
"math/isnormal.zig"
|
|
|
|
"math/ln.zig"
|
|
|
|
"math/log.zig"
|
|
|
|
"math/log10.zig"
|
|
|
|
"math/log1p.zig"
|
|
|
|
"math/log2.zig"
|
|
|
|
"math/modf.zig"
|
|
|
|
"math/nan.zig"
|
|
|
|
"math/pow.zig"
|
2018-10-10 07:50:23 -07:00
|
|
|
"math/powi.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
"math/round.zig"
|
|
|
|
"math/scalbn.zig"
|
|
|
|
"math/signbit.zig"
|
|
|
|
"math/sin.zig"
|
|
|
|
"math/sinh.zig"
|
|
|
|
"math/sqrt.zig"
|
|
|
|
"math/tan.zig"
|
|
|
|
"math/tanh.zig"
|
|
|
|
"math/trunc.zig"
|
2019-02-01 09:22:21 -08:00
|
|
|
"mem.zig"
|
2019-03-02 13:46:04 -08:00
|
|
|
"meta.zig"
|
2018-10-20 08:40:26 -07:00
|
|
|
"meta/trait.zig"
|
2018-08-01 13:26:37 -07:00
|
|
|
"mutex.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
"net.zig"
|
2019-03-02 13:46:04 -08:00
|
|
|
"os.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
"os/child_process.zig"
|
|
|
|
"os/darwin.zig"
|
2018-07-21 21:04:24 -07:00
|
|
|
"os/darwin/errno.zig"
|
2018-05-06 22:04:43 -07:00
|
|
|
"os/epoch.zig"
|
2018-02-10 17:55:13 -08:00
|
|
|
"os/file.zig"
|
2019-03-02 13:46:04 -08:00
|
|
|
"os/freebsd.zig"
|
2019-02-01 09:22:21 -08:00
|
|
|
"os/freebsd/errno.zig"
|
2018-07-18 07:07:22 -07:00
|
|
|
"os/get_app_data_dir.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
"os/get_user_id.zig"
|
2019-03-02 13:46:04 -08:00
|
|
|
"os/linux.zig"
|
2019-02-01 09:22:21 -08:00
|
|
|
"os/linux/arm64.zig"
|
2018-02-05 06:26:39 -08:00
|
|
|
"os/linux/errno.zig"
|
2018-04-22 15:11:50 -07:00
|
|
|
"os/linux/vdso.zig"
|
2018-02-05 06:26:39 -08:00
|
|
|
"os/linux/x86_64.zig"
|
2019-03-02 13:46:04 -08:00
|
|
|
"os/netbsd.zig"
|
2019-02-16 02:29:12 -08:00
|
|
|
"os/netbsd/errno.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
"os/path.zig"
|
2018-04-18 11:55:42 -07:00
|
|
|
"os/time.zig"
|
2018-12-26 12:25:54 -08:00
|
|
|
"os/uefi.zig"
|
2019-03-02 13:46:04 -08:00
|
|
|
"os/windows.zig"
|
2018-07-20 20:37:37 -07:00
|
|
|
"os/windows/advapi32.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
"os/windows/error.zig"
|
2018-07-20 20:37:37 -07:00
|
|
|
"os/windows/kernel32.zig"
|
2018-08-29 13:35:51 -07:00
|
|
|
"os/windows/ntdll.zig"
|
2018-07-20 20:37:37 -07:00
|
|
|
"os/windows/ole32.zig"
|
|
|
|
"os/windows/shell32.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
"os/windows/util.zig"
|
2018-01-07 01:43:08 -08:00
|
|
|
"os/zen.zig"
|
2018-07-21 11:30:11 -07:00
|
|
|
"pdb.zig"
|
2019-02-25 11:25:21 -08:00
|
|
|
"priority_queue.zig"
|
2019-03-02 13:46:04 -08:00
|
|
|
"rand.zig"
|
2018-04-14 02:08:49 -07:00
|
|
|
"rand/ziggurat.zig"
|
2018-05-06 22:04:43 -07:00
|
|
|
"segmented_list.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
"sort.zig"
|
|
|
|
"special/bootstrap.zig"
|
|
|
|
"special/bootstrap_lib.zig"
|
2019-03-02 07:38:27 -08:00
|
|
|
"special/bootstrap_windows_tls.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
"special/build_runner.zig"
|
|
|
|
"special/builtin.zig"
|
2019-03-02 13:46:04 -08:00
|
|
|
"special/compiler_rt.zig"
|
2019-02-13 02:24:52 -08:00
|
|
|
"special/compiler_rt/addXf3.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
"special/compiler_rt/aulldiv.zig"
|
|
|
|
"special/compiler_rt/aullrem.zig"
|
|
|
|
"special/compiler_rt/comparetf2.zig"
|
2018-06-13 03:25:04 -07:00
|
|
|
"special/compiler_rt/divti3.zig"
|
2018-06-21 11:43:55 -07:00
|
|
|
"special/compiler_rt/extendXfYf2.zig"
|
2019-02-01 09:22:21 -08:00
|
|
|
"special/compiler_rt/fixdfdi.zig"
|
|
|
|
"special/compiler_rt/fixdfsi.zig"
|
|
|
|
"special/compiler_rt/fixdfti.zig"
|
|
|
|
"special/compiler_rt/fixint.zig"
|
|
|
|
"special/compiler_rt/fixsfdi.zig"
|
|
|
|
"special/compiler_rt/fixsfsi.zig"
|
|
|
|
"special/compiler_rt/fixsfti.zig"
|
|
|
|
"special/compiler_rt/fixtfdi.zig"
|
|
|
|
"special/compiler_rt/fixtfsi.zig"
|
|
|
|
"special/compiler_rt/fixtfti.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
"special/compiler_rt/fixuint.zig"
|
|
|
|
"special/compiler_rt/fixunsdfdi.zig"
|
|
|
|
"special/compiler_rt/fixunsdfsi.zig"
|
|
|
|
"special/compiler_rt/fixunsdfti.zig"
|
|
|
|
"special/compiler_rt/fixunssfdi.zig"
|
|
|
|
"special/compiler_rt/fixunssfsi.zig"
|
|
|
|
"special/compiler_rt/fixunssfti.zig"
|
|
|
|
"special/compiler_rt/fixunstfdi.zig"
|
|
|
|
"special/compiler_rt/fixunstfsi.zig"
|
|
|
|
"special/compiler_rt/fixunstfti.zig"
|
2018-09-17 14:08:56 -07:00
|
|
|
"special/compiler_rt/floattidf.zig"
|
|
|
|
"special/compiler_rt/floattisf.zig"
|
|
|
|
"special/compiler_rt/floattitf.zig"
|
2018-06-28 04:14:40 -07:00
|
|
|
"special/compiler_rt/floatunditf.zig"
|
|
|
|
"special/compiler_rt/floatunsitf.zig"
|
2018-06-19 13:06:10 -07:00
|
|
|
"special/compiler_rt/floatuntidf.zig"
|
2018-06-28 04:14:40 -07:00
|
|
|
"special/compiler_rt/floatuntisf.zig"
|
|
|
|
"special/compiler_rt/floatuntitf.zig"
|
2018-09-17 14:08:56 -07:00
|
|
|
"special/compiler_rt/muloti4.zig"
|
2018-10-13 12:18:00 -07:00
|
|
|
"special/compiler_rt/multi3.zig"
|
2018-06-27 07:20:04 -07:00
|
|
|
"special/compiler_rt/truncXfYf2.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
"special/compiler_rt/udivmod.zig"
|
|
|
|
"special/compiler_rt/udivmoddi4.zig"
|
|
|
|
"special/compiler_rt/udivmodti4.zig"
|
|
|
|
"special/compiler_rt/udivti3.zig"
|
|
|
|
"special/compiler_rt/umodti3.zig"
|
2019-02-15 21:42:56 -08:00
|
|
|
"special/fmt_runner.zig"
|
2018-09-17 14:08:56 -07:00
|
|
|
"special/init-exe/build.zig"
|
|
|
|
"special/init-exe/src/main.zig"
|
|
|
|
"special/init-lib/build.zig"
|
|
|
|
"special/init-lib/src/main.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
"special/panic.zig"
|
|
|
|
"special/test_runner.zig"
|
2018-10-03 10:19:10 -07:00
|
|
|
"spinlock.zig"
|
2019-02-01 09:22:21 -08:00
|
|
|
"statically_initialized_mutex.zig"
|
2019-03-02 13:46:04 -08:00
|
|
|
"std.zig"
|
2019-02-08 15:18:47 -08:00
|
|
|
"testing.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
"unicode.zig"
|
2019-03-02 13:46:04 -08:00
|
|
|
"zig.zig"
|
2018-02-09 10:08:02 -08:00
|
|
|
"zig/ast.zig"
|
2018-05-07 19:07:50 -07:00
|
|
|
"zig/parse.zig"
|
2018-07-22 20:27:58 -07:00
|
|
|
"zig/parse_string_literal.zig"
|
2018-05-07 19:07:50 -07:00
|
|
|
"zig/render.zig"
|
2018-02-09 10:08:02 -08:00
|
|
|
"zig/tokenizer.zig"
|
2018-01-03 16:39:04 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
set(ZIG_C_HEADER_FILES
|
|
|
|
"__clang_cuda_builtin_vars.h"
|
|
|
|
"__clang_cuda_cmath.h"
|
|
|
|
"__clang_cuda_complex_builtins.h"
|
2018-10-04 15:14:57 -07:00
|
|
|
"__clang_cuda_device_functions.h"
|
2018-01-03 16:39:04 -08:00
|
|
|
"__clang_cuda_intrinsics.h"
|
2018-10-04 15:14:57 -07:00
|
|
|
"__clang_cuda_libdevice_declares.h"
|
2018-01-03 16:39:04 -08:00
|
|
|
"__clang_cuda_math_forward_declares.h"
|
|
|
|
"__clang_cuda_runtime_wrapper.h"
|
|
|
|
"__stddef_max_align_t.h"
|
|
|
|
"__wmmintrin_aes.h"
|
|
|
|
"__wmmintrin_pclmul.h"
|
|
|
|
"adxintrin.h"
|
|
|
|
"altivec.h"
|
|
|
|
"ammintrin.h"
|
2018-02-23 10:15:16 -08:00
|
|
|
"arm64intr.h"
|
2018-01-03 16:39:04 -08:00
|
|
|
"arm_acle.h"
|
2018-10-04 15:14:57 -07:00
|
|
|
"arm_fp16.h"
|
2018-01-03 16:39:04 -08:00
|
|
|
"arm_neon.h"
|
|
|
|
"armintr.h"
|
|
|
|
"avx2intrin.h"
|
2018-02-23 10:15:16 -08:00
|
|
|
"avx512bitalgintrin.h"
|
2018-01-03 16:39:04 -08:00
|
|
|
"avx512bwintrin.h"
|
|
|
|
"avx512cdintrin.h"
|
|
|
|
"avx512dqintrin.h"
|
|
|
|
"avx512erintrin.h"
|
|
|
|
"avx512fintrin.h"
|
|
|
|
"avx512ifmaintrin.h"
|
|
|
|
"avx512ifmavlintrin.h"
|
|
|
|
"avx512pfintrin.h"
|
2018-02-23 10:15:16 -08:00
|
|
|
"avx512vbmi2intrin.h"
|
2018-01-03 16:39:04 -08:00
|
|
|
"avx512vbmiintrin.h"
|
|
|
|
"avx512vbmivlintrin.h"
|
2018-02-23 10:15:16 -08:00
|
|
|
"avx512vlbitalgintrin.h"
|
2018-01-03 16:39:04 -08:00
|
|
|
"avx512vlbwintrin.h"
|
|
|
|
"avx512vlcdintrin.h"
|
|
|
|
"avx512vldqintrin.h"
|
|
|
|
"avx512vlintrin.h"
|
2018-02-23 10:15:16 -08:00
|
|
|
"avx512vlvbmi2intrin.h"
|
|
|
|
"avx512vlvnniintrin.h"
|
|
|
|
"avx512vnniintrin.h"
|
2018-01-03 16:39:04 -08:00
|
|
|
"avx512vpopcntdqintrin.h"
|
2018-02-23 10:15:16 -08:00
|
|
|
"avx512vpopcntdqvlintrin.h"
|
2018-01-03 16:39:04 -08:00
|
|
|
"avxintrin.h"
|
|
|
|
"bmi2intrin.h"
|
|
|
|
"bmiintrin.h"
|
2018-02-23 10:15:16 -08:00
|
|
|
"cetintrin.h"
|
2018-10-04 15:14:57 -07:00
|
|
|
"cldemoteintrin.h"
|
2018-01-03 16:39:04 -08:00
|
|
|
"clflushoptintrin.h"
|
2018-02-23 10:15:16 -08:00
|
|
|
"clwbintrin.h"
|
2018-01-03 16:39:04 -08:00
|
|
|
"clzerointrin.h"
|
|
|
|
"cpuid.h"
|
|
|
|
"cuda_wrappers/algorithm"
|
|
|
|
"cuda_wrappers/complex"
|
|
|
|
"cuda_wrappers/new"
|
|
|
|
"emmintrin.h"
|
|
|
|
"f16cintrin.h"
|
|
|
|
"float.h"
|
|
|
|
"fma4intrin.h"
|
|
|
|
"fmaintrin.h"
|
|
|
|
"fxsrintrin.h"
|
2018-02-23 10:15:16 -08:00
|
|
|
"gfniintrin.h"
|
2018-01-03 16:39:04 -08:00
|
|
|
"htmintrin.h"
|
|
|
|
"htmxlintrin.h"
|
|
|
|
"ia32intrin.h"
|
|
|
|
"immintrin.h"
|
|
|
|
"intrin.h"
|
|
|
|
"inttypes.h"
|
2018-10-04 15:14:57 -07:00
|
|
|
"invpcidintrin.h"
|
2018-01-03 16:39:04 -08:00
|
|
|
"iso646.h"
|
|
|
|
"limits.h"
|
|
|
|
"lwpintrin.h"
|
|
|
|
"lzcntintrin.h"
|
|
|
|
"mm3dnow.h"
|
|
|
|
"mm_malloc.h"
|
|
|
|
"mmintrin.h"
|
|
|
|
"module.modulemap"
|
2018-10-04 15:14:57 -07:00
|
|
|
"movdirintrin.h"
|
2018-01-03 16:39:04 -08:00
|
|
|
"msa.h"
|
|
|
|
"mwaitxintrin.h"
|
|
|
|
"nmmintrin.h"
|
|
|
|
"opencl-c.h"
|
2018-10-04 15:14:57 -07:00
|
|
|
"pconfigintrin.h"
|
2018-01-03 16:39:04 -08:00
|
|
|
"pkuintrin.h"
|
|
|
|
"pmmintrin.h"
|
|
|
|
"popcntintrin.h"
|
|
|
|
"prfchwintrin.h"
|
2018-10-04 15:14:57 -07:00
|
|
|
"ptwriteintrin.h"
|
2018-01-03 16:39:04 -08:00
|
|
|
"rdseedintrin.h"
|
|
|
|
"rtmintrin.h"
|
|
|
|
"s390intrin.h"
|
2018-10-04 15:14:57 -07:00
|
|
|
"sgxintrin.h"
|
2018-01-03 16:39:04 -08:00
|
|
|
"shaintrin.h"
|
|
|
|
"smmintrin.h"
|
|
|
|
"stdalign.h"
|
|
|
|
"stdarg.h"
|
|
|
|
"stdatomic.h"
|
|
|
|
"stdbool.h"
|
|
|
|
"stddef.h"
|
|
|
|
"stdint.h"
|
|
|
|
"stdnoreturn.h"
|
|
|
|
"tbmintrin.h"
|
|
|
|
"tgmath.h"
|
|
|
|
"tmmintrin.h"
|
|
|
|
"unwind.h"
|
|
|
|
"vadefs.h"
|
2018-02-23 10:15:16 -08:00
|
|
|
"vaesintrin.h"
|
2018-01-03 16:39:04 -08:00
|
|
|
"varargs.h"
|
|
|
|
"vecintrin.h"
|
2018-02-23 10:15:16 -08:00
|
|
|
"vpclmulqdqintrin.h"
|
2018-10-04 15:14:57 -07:00
|
|
|
"waitpkgintrin.h"
|
|
|
|
"wbnoinvdintrin.h"
|
2018-01-03 16:39:04 -08:00
|
|
|
"wmmintrin.h"
|
|
|
|
"x86intrin.h"
|
|
|
|
"xmmintrin.h"
|
|
|
|
"xopintrin.h"
|
|
|
|
"xsavecintrin.h"
|
|
|
|
"xsaveintrin.h"
|
|
|
|
"xsaveoptintrin.h"
|
|
|
|
"xsavesintrin.h"
|
|
|
|
"xtestintrin.h"
|
|
|
|
)
|
|
|
|
|
2019-03-04 19:15:53 -08:00
|
|
|
set(ZIG_LIBC_FILES
|
2019-03-05 15:17:22 -08:00
|
|
|
"dummy/c.zig"
|
|
|
|
"dummy/dl.zig"
|
|
|
|
"dummy/m.zig"
|
|
|
|
"dummy/pthread.zig"
|
|
|
|
"dummy/rt.zig"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc-include/a.out.h"
|
|
|
|
"glibc-include/aio.h"
|
|
|
|
"glibc-include/aliases.h"
|
|
|
|
"glibc-include/alloca.h"
|
|
|
|
"glibc-include/ar.h"
|
|
|
|
"glibc-include/argp.h"
|
|
|
|
"glibc-include/argz.h"
|
|
|
|
"glibc-include/arpa/ftp.h"
|
|
|
|
"glibc-include/arpa/inet.h"
|
|
|
|
"glibc-include/arpa/nameser.h"
|
|
|
|
"glibc-include/arpa/nameser_compat.h"
|
|
|
|
"glibc-include/arpa/telnet.h"
|
|
|
|
"glibc-include/arpa/tftp.h"
|
|
|
|
"glibc-include/assert.h"
|
|
|
|
"glibc-include/bits/a.out.h"
|
|
|
|
"glibc-include/bits/byteswap.h"
|
|
|
|
"glibc-include/bits/cmathcalls.h"
|
|
|
|
"glibc-include/bits/confname.h"
|
|
|
|
"glibc-include/bits/cpu-set.h"
|
|
|
|
"glibc-include/bits/dirent.h"
|
|
|
|
"glibc-include/bits/dlfcn.h"
|
|
|
|
"glibc-include/bits/elfclass.h"
|
|
|
|
"glibc-include/bits/endian.h"
|
|
|
|
"glibc-include/bits/environments.h"
|
|
|
|
"glibc-include/bits/epoll.h"
|
|
|
|
"glibc-include/bits/errno.h"
|
|
|
|
"glibc-include/bits/error.h"
|
|
|
|
"glibc-include/bits/eventfd.h"
|
|
|
|
"glibc-include/bits/fcntl-linux.h"
|
|
|
|
"glibc-include/bits/fcntl.h"
|
|
|
|
"glibc-include/bits/fcntl2.h"
|
|
|
|
"glibc-include/bits/fenv.h"
|
|
|
|
"glibc-include/bits/fenvinline.h"
|
|
|
|
"glibc-include/bits/floatn-common.h"
|
|
|
|
"glibc-include/bits/floatn.h"
|
|
|
|
"glibc-include/bits/flt-eval-method.h"
|
|
|
|
"glibc-include/bits/fp-fast.h"
|
|
|
|
"glibc-include/bits/fp-logb.h"
|
|
|
|
"glibc-include/bits/getopt_core.h"
|
|
|
|
"glibc-include/bits/getopt_ext.h"
|
|
|
|
"glibc-include/bits/getopt_posix.h"
|
|
|
|
"glibc-include/bits/hwcap.h"
|
|
|
|
"glibc-include/bits/in.h"
|
|
|
|
"glibc-include/bits/indirect-return.h"
|
|
|
|
"glibc-include/bits/initspin.h"
|
|
|
|
"glibc-include/bits/inotify.h"
|
|
|
|
"glibc-include/bits/ioctl-types.h"
|
|
|
|
"glibc-include/bits/ioctls.h"
|
|
|
|
"glibc-include/bits/ipc.h"
|
|
|
|
"glibc-include/bits/ipctypes.h"
|
|
|
|
"glibc-include/bits/iscanonical.h"
|
|
|
|
"glibc-include/bits/libc-header-start.h"
|
|
|
|
"glibc-include/bits/libm-simd-decl-stubs.h"
|
|
|
|
"glibc-include/bits/link.h"
|
|
|
|
"glibc-include/bits/local_lim.h"
|
|
|
|
"glibc-include/bits/locale.h"
|
|
|
|
"glibc-include/bits/long-double.h"
|
|
|
|
"glibc-include/bits/math-finite.h"
|
|
|
|
"glibc-include/bits/math-vector.h"
|
|
|
|
"glibc-include/bits/mathcalls-helper-functions.h"
|
|
|
|
"glibc-include/bits/mathcalls-narrow.h"
|
|
|
|
"glibc-include/bits/mathcalls.h"
|
|
|
|
"glibc-include/bits/mathdef.h"
|
|
|
|
"glibc-include/bits/mathinline.h"
|
|
|
|
"glibc-include/bits/mman-linux.h"
|
|
|
|
"glibc-include/bits/mman-map-flags-generic.h"
|
|
|
|
"glibc-include/bits/mman-shared.h"
|
|
|
|
"glibc-include/bits/mman.h"
|
|
|
|
"glibc-include/bits/monetary-ldbl.h"
|
|
|
|
"glibc-include/bits/mqueue.h"
|
|
|
|
"glibc-include/bits/mqueue2.h"
|
|
|
|
"glibc-include/bits/msq-pad.h"
|
|
|
|
"glibc-include/bits/msq.h"
|
|
|
|
"glibc-include/bits/netdb.h"
|
|
|
|
"glibc-include/bits/param.h"
|
|
|
|
"glibc-include/bits/poll.h"
|
|
|
|
"glibc-include/bits/poll2.h"
|
|
|
|
"glibc-include/bits/posix1_lim.h"
|
|
|
|
"glibc-include/bits/posix2_lim.h"
|
|
|
|
"glibc-include/bits/posix_opt.h"
|
|
|
|
"glibc-include/bits/printf-ldbl.h"
|
|
|
|
"glibc-include/bits/procfs-extra.h"
|
|
|
|
"glibc-include/bits/procfs-id.h"
|
|
|
|
"glibc-include/bits/procfs-prregset.h"
|
|
|
|
"glibc-include/bits/procfs.h"
|
|
|
|
"glibc-include/bits/pthreadtypes-arch.h"
|
|
|
|
"glibc-include/bits/pthreadtypes.h"
|
|
|
|
"glibc-include/bits/ptrace-shared.h"
|
|
|
|
"glibc-include/bits/resource.h"
|
|
|
|
"glibc-include/bits/sched.h"
|
|
|
|
"glibc-include/bits/select.h"
|
|
|
|
"glibc-include/bits/select2.h"
|
|
|
|
"glibc-include/bits/sem-pad.h"
|
|
|
|
"glibc-include/bits/sem.h"
|
|
|
|
"glibc-include/bits/semaphore.h"
|
|
|
|
"glibc-include/bits/setjmp.h"
|
|
|
|
"glibc-include/bits/setjmp2.h"
|
|
|
|
"glibc-include/bits/shm-pad.h"
|
|
|
|
"glibc-include/bits/shm.h"
|
|
|
|
"glibc-include/bits/shmlba.h"
|
|
|
|
"glibc-include/bits/sigaction.h"
|
|
|
|
"glibc-include/bits/sigcontext.h"
|
|
|
|
"glibc-include/bits/sigevent-consts.h"
|
|
|
|
"glibc-include/bits/siginfo-arch.h"
|
|
|
|
"glibc-include/bits/siginfo-consts-arch.h"
|
|
|
|
"glibc-include/bits/siginfo-consts.h"
|
|
|
|
"glibc-include/bits/signalfd.h"
|
|
|
|
"glibc-include/bits/signum-generic.h"
|
|
|
|
"glibc-include/bits/signum.h"
|
|
|
|
"glibc-include/bits/sigstack.h"
|
|
|
|
"glibc-include/bits/sigthread.h"
|
|
|
|
"glibc-include/bits/sockaddr.h"
|
|
|
|
"glibc-include/bits/socket.h"
|
|
|
|
"glibc-include/bits/socket2.h"
|
|
|
|
"glibc-include/bits/socket_type.h"
|
|
|
|
"glibc-include/bits/ss_flags.h"
|
|
|
|
"glibc-include/bits/stab.def"
|
|
|
|
"glibc-include/bits/stat.h"
|
|
|
|
"glibc-include/bits/statfs.h"
|
|
|
|
"glibc-include/bits/statvfs.h"
|
|
|
|
"glibc-include/bits/statx.h"
|
|
|
|
"glibc-include/bits/stdint-intn.h"
|
|
|
|
"glibc-include/bits/stdint-uintn.h"
|
|
|
|
"glibc-include/bits/stdio-ldbl.h"
|
|
|
|
"glibc-include/bits/stdio.h"
|
|
|
|
"glibc-include/bits/stdio2.h"
|
|
|
|
"glibc-include/bits/stdio_lim.h"
|
|
|
|
"glibc-include/bits/stdlib-bsearch.h"
|
|
|
|
"glibc-include/bits/stdlib-float.h"
|
|
|
|
"glibc-include/bits/stdlib-ldbl.h"
|
|
|
|
"glibc-include/bits/stdlib.h"
|
|
|
|
"glibc-include/bits/string_fortified.h"
|
|
|
|
"glibc-include/bits/strings_fortified.h"
|
|
|
|
"glibc-include/bits/stropts.h"
|
|
|
|
"glibc-include/bits/sys_errlist.h"
|
|
|
|
"glibc-include/bits/syscall.h"
|
|
|
|
"glibc-include/bits/sysctl.h"
|
|
|
|
"glibc-include/bits/syslog-ldbl.h"
|
|
|
|
"glibc-include/bits/syslog-path.h"
|
|
|
|
"glibc-include/bits/syslog.h"
|
|
|
|
"glibc-include/bits/sysmacros.h"
|
|
|
|
"glibc-include/bits/termios-baud.h"
|
|
|
|
"glibc-include/bits/termios-c_cc.h"
|
|
|
|
"glibc-include/bits/termios-c_cflag.h"
|
|
|
|
"glibc-include/bits/termios-c_iflag.h"
|
|
|
|
"glibc-include/bits/termios-c_lflag.h"
|
|
|
|
"glibc-include/bits/termios-c_oflag.h"
|
|
|
|
"glibc-include/bits/termios-misc.h"
|
|
|
|
"glibc-include/bits/termios-struct.h"
|
|
|
|
"glibc-include/bits/termios-tcflow.h"
|
|
|
|
"glibc-include/bits/termios.h"
|
|
|
|
"glibc-include/bits/thread-shared-types.h"
|
|
|
|
"glibc-include/bits/time.h"
|
|
|
|
"glibc-include/bits/time64.h"
|
|
|
|
"glibc-include/bits/timerfd.h"
|
|
|
|
"glibc-include/bits/timesize.h"
|
|
|
|
"glibc-include/bits/timex.h"
|
|
|
|
"glibc-include/bits/types.h"
|
|
|
|
"glibc-include/bits/types/FILE.h"
|
|
|
|
"glibc-include/bits/types/__FILE.h"
|
|
|
|
"glibc-include/bits/types/__fpos64_t.h"
|
|
|
|
"glibc-include/bits/types/__fpos_t.h"
|
|
|
|
"glibc-include/bits/types/__locale_t.h"
|
|
|
|
"glibc-include/bits/types/__mbstate_t.h"
|
|
|
|
"glibc-include/bits/types/__sigset_t.h"
|
|
|
|
"glibc-include/bits/types/__sigval_t.h"
|
|
|
|
"glibc-include/bits/types/clock_t.h"
|
|
|
|
"glibc-include/bits/types/clockid_t.h"
|
|
|
|
"glibc-include/bits/types/cookie_io_functions_t.h"
|
|
|
|
"glibc-include/bits/types/error_t.h"
|
|
|
|
"glibc-include/bits/types/locale_t.h"
|
|
|
|
"glibc-include/bits/types/mbstate_t.h"
|
|
|
|
"glibc-include/bits/types/res_state.h"
|
|
|
|
"glibc-include/bits/types/sig_atomic_t.h"
|
|
|
|
"glibc-include/bits/types/sigevent_t.h"
|
|
|
|
"glibc-include/bits/types/siginfo_t.h"
|
|
|
|
"glibc-include/bits/types/sigset_t.h"
|
|
|
|
"glibc-include/bits/types/sigval_t.h"
|
|
|
|
"glibc-include/bits/types/stack_t.h"
|
|
|
|
"glibc-include/bits/types/struct_FILE.h"
|
|
|
|
"glibc-include/bits/types/struct_iovec.h"
|
|
|
|
"glibc-include/bits/types/struct_itimerspec.h"
|
|
|
|
"glibc-include/bits/types/struct_osockaddr.h"
|
|
|
|
"glibc-include/bits/types/struct_rusage.h"
|
|
|
|
"glibc-include/bits/types/struct_sched_param.h"
|
|
|
|
"glibc-include/bits/types/struct_sigstack.h"
|
|
|
|
"glibc-include/bits/types/struct_timespec.h"
|
|
|
|
"glibc-include/bits/types/struct_timeval.h"
|
|
|
|
"glibc-include/bits/types/struct_tm.h"
|
|
|
|
"glibc-include/bits/types/time_t.h"
|
|
|
|
"glibc-include/bits/types/timer_t.h"
|
|
|
|
"glibc-include/bits/types/wint_t.h"
|
|
|
|
"glibc-include/bits/typesizes.h"
|
|
|
|
"glibc-include/bits/uintn-identity.h"
|
|
|
|
"glibc-include/bits/uio-ext.h"
|
|
|
|
"glibc-include/bits/uio_lim.h"
|
|
|
|
"glibc-include/bits/unistd.h"
|
|
|
|
"glibc-include/bits/utmp.h"
|
|
|
|
"glibc-include/bits/utmpx.h"
|
|
|
|
"glibc-include/bits/utsname.h"
|
|
|
|
"glibc-include/bits/waitflags.h"
|
|
|
|
"glibc-include/bits/waitstatus.h"
|
|
|
|
"glibc-include/bits/wchar-ldbl.h"
|
|
|
|
"glibc-include/bits/wchar.h"
|
|
|
|
"glibc-include/bits/wchar2.h"
|
|
|
|
"glibc-include/bits/wctype-wchar.h"
|
|
|
|
"glibc-include/bits/wordsize.h"
|
|
|
|
"glibc-include/bits/xopen_lim.h"
|
|
|
|
"glibc-include/bits/xtitypes.h"
|
|
|
|
"glibc-include/byteswap.h"
|
|
|
|
"glibc-include/complex.h"
|
|
|
|
"glibc-include/cpio.h"
|
|
|
|
"glibc-include/crypt.h"
|
|
|
|
"glibc-include/ctype.h"
|
|
|
|
"glibc-include/dirent.h"
|
|
|
|
"glibc-include/dlfcn.h"
|
|
|
|
"glibc-include/elf.h"
|
|
|
|
"glibc-include/endian.h"
|
|
|
|
"glibc-include/envz.h"
|
|
|
|
"glibc-include/err.h"
|
|
|
|
"glibc-include/errno.h"
|
|
|
|
"glibc-include/error.h"
|
|
|
|
"glibc-include/execinfo.h"
|
|
|
|
"glibc-include/fcntl.h"
|
|
|
|
"glibc-include/features.h"
|
|
|
|
"glibc-include/fenv.h"
|
|
|
|
"glibc-include/fmtmsg.h"
|
|
|
|
"glibc-include/fnmatch.h"
|
|
|
|
"glibc-include/fpu_control.h"
|
|
|
|
"glibc-include/fstab.h"
|
|
|
|
"glibc-include/fts.h"
|
|
|
|
"glibc-include/ftw.h"
|
|
|
|
"glibc-include/gconv.h"
|
|
|
|
"glibc-include/getopt.h"
|
|
|
|
"glibc-include/glob.h"
|
|
|
|
"glibc-include/gnu-versions.h"
|
|
|
|
"glibc-include/gnu/lib-names-64.h"
|
|
|
|
"glibc-include/gnu/lib-names.h"
|
|
|
|
"glibc-include/gnu/libc-version.h"
|
|
|
|
"glibc-include/gnu/stubs-64.h"
|
|
|
|
"glibc-include/gnu/stubs.h"
|
|
|
|
"glibc-include/grp.h"
|
|
|
|
"glibc-include/gshadow.h"
|
|
|
|
"glibc-include/iconv.h"
|
|
|
|
"glibc-include/ieee754.h"
|
|
|
|
"glibc-include/ifaddrs.h"
|
|
|
|
"glibc-include/inttypes.h"
|
|
|
|
"glibc-include/langinfo.h"
|
|
|
|
"glibc-include/lastlog.h"
|
|
|
|
"glibc-include/libgen.h"
|
|
|
|
"glibc-include/libintl.h"
|
|
|
|
"glibc-include/limits.h"
|
|
|
|
"glibc-include/link.h"
|
|
|
|
"glibc-include/locale.h"
|
|
|
|
"glibc-include/malloc.h"
|
|
|
|
"glibc-include/math.h"
|
|
|
|
"glibc-include/mcheck.h"
|
|
|
|
"glibc-include/memory.h"
|
|
|
|
"glibc-include/mntent.h"
|
|
|
|
"glibc-include/monetary.h"
|
|
|
|
"glibc-include/mqueue.h"
|
|
|
|
"glibc-include/net/ethernet.h"
|
|
|
|
"glibc-include/net/if.h"
|
|
|
|
"glibc-include/net/if_arp.h"
|
|
|
|
"glibc-include/net/if_packet.h"
|
|
|
|
"glibc-include/net/if_ppp.h"
|
|
|
|
"glibc-include/net/if_shaper.h"
|
|
|
|
"glibc-include/net/if_slip.h"
|
|
|
|
"glibc-include/net/ppp-comp.h"
|
|
|
|
"glibc-include/net/ppp_defs.h"
|
|
|
|
"glibc-include/net/route.h"
|
|
|
|
"glibc-include/netash/ash.h"
|
|
|
|
"glibc-include/netatalk/at.h"
|
|
|
|
"glibc-include/netax25/ax25.h"
|
|
|
|
"glibc-include/netdb.h"
|
|
|
|
"glibc-include/neteconet/ec.h"
|
|
|
|
"glibc-include/netinet/ether.h"
|
|
|
|
"glibc-include/netinet/icmp6.h"
|
|
|
|
"glibc-include/netinet/if_ether.h"
|
|
|
|
"glibc-include/netinet/if_fddi.h"
|
|
|
|
"glibc-include/netinet/if_tr.h"
|
|
|
|
"glibc-include/netinet/igmp.h"
|
|
|
|
"glibc-include/netinet/in.h"
|
|
|
|
"glibc-include/netinet/in_systm.h"
|
|
|
|
"glibc-include/netinet/ip.h"
|
|
|
|
"glibc-include/netinet/ip6.h"
|
|
|
|
"glibc-include/netinet/ip_icmp.h"
|
|
|
|
"glibc-include/netinet/tcp.h"
|
|
|
|
"glibc-include/netinet/udp.h"
|
|
|
|
"glibc-include/netipx/ipx.h"
|
|
|
|
"glibc-include/netiucv/iucv.h"
|
|
|
|
"glibc-include/netpacket/packet.h"
|
|
|
|
"glibc-include/netrom/netrom.h"
|
|
|
|
"glibc-include/netrose/rose.h"
|
|
|
|
"glibc-include/nfs/nfs.h"
|
|
|
|
"glibc-include/nl_types.h"
|
|
|
|
"glibc-include/nss.h"
|
|
|
|
"glibc-include/obstack.h"
|
|
|
|
"glibc-include/paths.h"
|
|
|
|
"glibc-include/poll.h"
|
|
|
|
"glibc-include/printf.h"
|
|
|
|
"glibc-include/proc_service.h"
|
|
|
|
"glibc-include/protocols/routed.h"
|
|
|
|
"glibc-include/protocols/rwhod.h"
|
|
|
|
"glibc-include/protocols/talkd.h"
|
|
|
|
"glibc-include/protocols/timed.h"
|
|
|
|
"glibc-include/pthread.h"
|
|
|
|
"glibc-include/pty.h"
|
|
|
|
"glibc-include/pwd.h"
|
|
|
|
"glibc-include/re_comp.h"
|
|
|
|
"glibc-include/regex.h"
|
|
|
|
"glibc-include/regexp.h"
|
|
|
|
"glibc-include/resolv.h"
|
|
|
|
"glibc-include/rpc/netdb.h"
|
|
|
|
"glibc-include/sched.h"
|
|
|
|
"glibc-include/scsi/scsi.h"
|
|
|
|
"glibc-include/scsi/scsi_ioctl.h"
|
|
|
|
"glibc-include/scsi/sg.h"
|
|
|
|
"glibc-include/search.h"
|
|
|
|
"glibc-include/semaphore.h"
|
|
|
|
"glibc-include/setjmp.h"
|
|
|
|
"glibc-include/sgtty.h"
|
|
|
|
"glibc-include/shadow.h"
|
|
|
|
"glibc-include/signal.h"
|
|
|
|
"glibc-include/spawn.h"
|
|
|
|
"glibc-include/stab.h"
|
|
|
|
"glibc-include/stdc-predef.h"
|
|
|
|
"glibc-include/stdint.h"
|
|
|
|
"glibc-include/stdio.h"
|
|
|
|
"glibc-include/stdio_ext.h"
|
|
|
|
"glibc-include/stdlib.h"
|
|
|
|
"glibc-include/string.h"
|
|
|
|
"glibc-include/strings.h"
|
|
|
|
"glibc-include/stropts.h"
|
|
|
|
"glibc-include/sys/acct.h"
|
|
|
|
"glibc-include/sys/auxv.h"
|
|
|
|
"glibc-include/sys/bitypes.h"
|
|
|
|
"glibc-include/sys/cdefs.h"
|
|
|
|
"glibc-include/sys/debugreg.h"
|
|
|
|
"glibc-include/sys/dir.h"
|
|
|
|
"glibc-include/sys/elf.h"
|
|
|
|
"glibc-include/sys/epoll.h"
|
|
|
|
"glibc-include/sys/errno.h"
|
|
|
|
"glibc-include/sys/eventfd.h"
|
|
|
|
"glibc-include/sys/fanotify.h"
|
|
|
|
"glibc-include/sys/fcntl.h"
|
|
|
|
"glibc-include/sys/file.h"
|
|
|
|
"glibc-include/sys/fsuid.h"
|
|
|
|
"glibc-include/sys/gmon.h"
|
|
|
|
"glibc-include/sys/gmon_out.h"
|
|
|
|
"glibc-include/sys/inotify.h"
|
|
|
|
"glibc-include/sys/io.h"
|
|
|
|
"glibc-include/sys/ioctl.h"
|
|
|
|
"glibc-include/sys/ipc.h"
|
|
|
|
"glibc-include/sys/kd.h"
|
|
|
|
"glibc-include/sys/klog.h"
|
|
|
|
"glibc-include/sys/mman.h"
|
|
|
|
"glibc-include/sys/mount.h"
|
|
|
|
"glibc-include/sys/msg.h"
|
|
|
|
"glibc-include/sys/mtio.h"
|
|
|
|
"glibc-include/sys/param.h"
|
|
|
|
"glibc-include/sys/pci.h"
|
|
|
|
"glibc-include/sys/perm.h"
|
|
|
|
"glibc-include/sys/personality.h"
|
|
|
|
"glibc-include/sys/poll.h"
|
|
|
|
"glibc-include/sys/prctl.h"
|
|
|
|
"glibc-include/sys/procfs.h"
|
|
|
|
"glibc-include/sys/profil.h"
|
|
|
|
"glibc-include/sys/ptrace.h"
|
|
|
|
"glibc-include/sys/queue.h"
|
|
|
|
"glibc-include/sys/quota.h"
|
|
|
|
"glibc-include/sys/random.h"
|
|
|
|
"glibc-include/sys/raw.h"
|
|
|
|
"glibc-include/sys/reboot.h"
|
|
|
|
"glibc-include/sys/reg.h"
|
|
|
|
"glibc-include/sys/resource.h"
|
|
|
|
"glibc-include/sys/select.h"
|
|
|
|
"glibc-include/sys/sem.h"
|
|
|
|
"glibc-include/sys/sendfile.h"
|
|
|
|
"glibc-include/sys/shm.h"
|
|
|
|
"glibc-include/sys/signal.h"
|
|
|
|
"glibc-include/sys/signalfd.h"
|
|
|
|
"glibc-include/sys/socket.h"
|
|
|
|
"glibc-include/sys/socketvar.h"
|
|
|
|
"glibc-include/sys/soundcard.h"
|
|
|
|
"glibc-include/sys/stat.h"
|
|
|
|
"glibc-include/sys/statfs.h"
|
|
|
|
"glibc-include/sys/statvfs.h"
|
|
|
|
"glibc-include/sys/stropts.h"
|
|
|
|
"glibc-include/sys/swap.h"
|
|
|
|
"glibc-include/sys/syscall.h"
|
|
|
|
"glibc-include/sys/sysctl.h"
|
|
|
|
"glibc-include/sys/sysinfo.h"
|
|
|
|
"glibc-include/sys/syslog.h"
|
|
|
|
"glibc-include/sys/sysmacros.h"
|
|
|
|
"glibc-include/sys/termios.h"
|
|
|
|
"glibc-include/sys/time.h"
|
|
|
|
"glibc-include/sys/timeb.h"
|
|
|
|
"glibc-include/sys/timerfd.h"
|
|
|
|
"glibc-include/sys/times.h"
|
|
|
|
"glibc-include/sys/timex.h"
|
|
|
|
"glibc-include/sys/ttychars.h"
|
|
|
|
"glibc-include/sys/ttydefaults.h"
|
|
|
|
"glibc-include/sys/types.h"
|
|
|
|
"glibc-include/sys/ucontext.h"
|
|
|
|
"glibc-include/sys/uio.h"
|
|
|
|
"glibc-include/sys/un.h"
|
|
|
|
"glibc-include/sys/unistd.h"
|
|
|
|
"glibc-include/sys/user.h"
|
|
|
|
"glibc-include/sys/utsname.h"
|
|
|
|
"glibc-include/sys/vfs.h"
|
|
|
|
"glibc-include/sys/vlimit.h"
|
|
|
|
"glibc-include/sys/vm86.h"
|
|
|
|
"glibc-include/sys/vt.h"
|
|
|
|
"glibc-include/sys/vtimes.h"
|
|
|
|
"glibc-include/sys/wait.h"
|
|
|
|
"glibc-include/sys/xattr.h"
|
|
|
|
"glibc-include/syscall.h"
|
|
|
|
"glibc-include/sysexits.h"
|
|
|
|
"glibc-include/syslog.h"
|
|
|
|
"glibc-include/tar.h"
|
|
|
|
"glibc-include/termio.h"
|
|
|
|
"glibc-include/termios.h"
|
|
|
|
"glibc-include/tgmath.h"
|
|
|
|
"glibc-include/thread_db.h"
|
|
|
|
"glibc-include/threads.h"
|
|
|
|
"glibc-include/time.h"
|
|
|
|
"glibc-include/ttyent.h"
|
|
|
|
"glibc-include/uchar.h"
|
|
|
|
"glibc-include/ucontext.h"
|
|
|
|
"glibc-include/ulimit.h"
|
|
|
|
"glibc-include/unistd.h"
|
|
|
|
"glibc-include/utime.h"
|
|
|
|
"glibc-include/utmp.h"
|
|
|
|
"glibc-include/utmpx.h"
|
|
|
|
"glibc-include/values.h"
|
|
|
|
"glibc-include/wait.h"
|
|
|
|
"glibc-include/wchar.h"
|
|
|
|
"glibc-include/wctype.h"
|
|
|
|
"glibc-include/wordexp.h"
|
|
|
|
"glibc/bits/byteswap.h"
|
|
|
|
"glibc/bits/endian.h"
|
|
|
|
"glibc/bits/floatn-common.h"
|
|
|
|
"glibc/bits/libc-header-start.h"
|
|
|
|
"glibc/bits/long-double.h"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/bits/param.h"
|
|
|
|
"glibc/bits/pthreadtypes.h"
|
|
|
|
"glibc/bits/sched.h"
|
|
|
|
"glibc/bits/select.h"
|
|
|
|
"glibc/bits/setjmp.h"
|
|
|
|
"glibc/bits/signum-generic.h"
|
|
|
|
"glibc/bits/signum.h"
|
|
|
|
"glibc/bits/stat.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/bits/stdint-intn.h"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/bits/stdlib-bsearch.h"
|
|
|
|
"glibc/bits/time.h"
|
|
|
|
"glibc/bits/time64.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/bits/timesize.h"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/bits/types/__sigset_t.h"
|
|
|
|
"glibc/bits/types/struct_sched_param.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/bits/typesizes.h"
|
|
|
|
"glibc/bits/uintn-identity.h"
|
|
|
|
"glibc/bits/waitflags.h"
|
|
|
|
"glibc/bits/waitstatus.h"
|
|
|
|
"glibc/csu/abi-note.S"
|
|
|
|
"glibc/csu/abi-tag.h"
|
|
|
|
"glibc/csu/elf-init.c"
|
|
|
|
"glibc/csu/init.c"
|
|
|
|
"glibc/debug/stack_chk_fail_local.c"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/elf/elf.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/include/alloca.h"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/include/bits/cpu-set.h"
|
|
|
|
"glibc/include/bits/statx.h"
|
|
|
|
"glibc/include/bits/stdlib-float.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/include/bits/types.h"
|
|
|
|
"glibc/include/bits/types/__locale_t.h"
|
|
|
|
"glibc/include/bits/types/clock_t.h"
|
|
|
|
"glibc/include/bits/types/clockid_t.h"
|
|
|
|
"glibc/include/bits/types/locale_t.h"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/include/bits/types/sig_atomic_t.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/include/bits/types/sigset_t.h"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/include/bits/types/struct_itimerspec.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/include/bits/types/struct_timespec.h"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/include/bits/types/struct_timeval.h"
|
|
|
|
"glibc/include/bits/types/struct_tm.h"
|
|
|
|
"glibc/include/bits/types/time_t.h"
|
|
|
|
"glibc/include/bits/types/timer_t.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/include/config.h"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/include/dso_handle.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/include/elf.h"
|
|
|
|
"glibc/include/endian.h"
|
|
|
|
"glibc/include/features.h"
|
|
|
|
"glibc/include/gnu/stubs.h"
|
|
|
|
"glibc/include/libc-modules.h"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/include/libc-pointer-arith.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/include/libc-symbols.h"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/include/pthread.h"
|
|
|
|
"glibc/include/sched.h"
|
|
|
|
"glibc/include/setjmp.h"
|
|
|
|
"glibc/include/signal.h"
|
|
|
|
"glibc/include/stackinfo.h"
|
|
|
|
"glibc/include/stap-probe.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/include/stdc-predef.h"
|
|
|
|
"glibc/include/stdlib.h"
|
|
|
|
"glibc/include/sys/cdefs.h"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/include/sys/param.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/include/sys/select.h"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/include/sys/signal.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/include/sys/stat.h"
|
|
|
|
"glibc/include/sys/time.h"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/include/sys/types.h"
|
|
|
|
"glibc/include/time.h"
|
|
|
|
"glibc/io/bits/statx.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/io/fstat.c"
|
|
|
|
"glibc/io/fstat64.c"
|
|
|
|
"glibc/io/fstatat.c"
|
|
|
|
"glibc/io/fstatat64.c"
|
|
|
|
"glibc/io/lstat.c"
|
|
|
|
"glibc/io/lstat64.c"
|
|
|
|
"glibc/io/mknod.c"
|
|
|
|
"glibc/io/mknodat.c"
|
|
|
|
"glibc/io/stat.c"
|
|
|
|
"glibc/io/stat64.c"
|
|
|
|
"glibc/io/sys/stat.h"
|
|
|
|
"glibc/locale/bits/types/__locale_t.h"
|
|
|
|
"glibc/locale/bits/types/locale_t.h"
|
|
|
|
"glibc/misc/sys/cdefs.h"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/misc/sys/param.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/misc/sys/select.h"
|
|
|
|
"glibc/nptl/pthread_atfork.c"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/posix/bits/cpu-set.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/posix/bits/types.h"
|
|
|
|
"glibc/posix/sched.h"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/posix/sys/types.h"
|
|
|
|
"glibc/setjmp/setjmp.h"
|
|
|
|
"glibc/setjmp/setjmp.h"
|
|
|
|
"glibc/signal/bits/types/sig_atomic_t.h"
|
|
|
|
"glibc/signal/bits/types/sigset_t.h"
|
|
|
|
"glibc/signal/signal.h"
|
|
|
|
"glibc/signal/sys/signal.h"
|
|
|
|
"glibc/stdlib/alloca.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/stdlib/at_quick_exit.c"
|
|
|
|
"glibc/stdlib/atexit.c"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/stdlib/bits/stdlib-float.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/stdlib/exit.h"
|
|
|
|
"glibc/stdlib/stdlib.h"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/string/endian.h"
|
|
|
|
"glibc/sysdeps/generic/allocalim.h"
|
|
|
|
"glibc/sysdeps/generic/dl-dtprocnum.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/sysdeps/generic/dwarf2.h"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/sysdeps/generic/libc-lock.h"
|
|
|
|
"glibc/sysdeps/generic/stackinfo.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/sysdeps/generic/symbol-hacks.h"
|
|
|
|
"glibc/sysdeps/generic/sysdep.h"
|
|
|
|
"glibc/sysdeps/nptl/bits/pthreadtypes.h"
|
|
|
|
"glibc/sysdeps/nptl/bits/thread-shared-types.h"
|
|
|
|
"glibc/sysdeps/nptl/libc-lock.h"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/sysdeps/nptl/libc-lockP.h"
|
|
|
|
"glibc/sysdeps/nptl/lowlevellock.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/sysdeps/nptl/pthread.h"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/sysdeps/pthread/allocalim.h"
|
|
|
|
"glibc/sysdeps/unix/sysv/linux/bits/param.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/sysdeps/unix/sysv/linux/bits/sched.h"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/sysdeps/unix/sysv/linux/bits/signum.h"
|
|
|
|
"glibc/sysdeps/unix/sysv/linux/bits/stat.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/sysdeps/unix/sysv/linux/bits/time.h"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/sysdeps/unix/sysv/linux/bits/timex.h"
|
|
|
|
"glibc/sysdeps/unix/sysv/linux/generic/bits/stat.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/sysdeps/unix/sysv/linux/include/sys/timex.h"
|
|
|
|
"glibc/sysdeps/unix/sysv/linux/sys/timex.h"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/sysdeps/unix/sysv/linux/x86/bits/stat.h"
|
|
|
|
"glibc/sysdeps/unix/sysv/linux/x86/bits/typesizes.h"
|
|
|
|
"glibc/sysdeps/unix/sysv/linux/x86/sys/elf.h"
|
|
|
|
"glibc/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/sysdeps/x86/bits/endian.h"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/sysdeps/x86/bits/floatn.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/sysdeps/x86/bits/select.h"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/sysdeps/x86/bits/setjmp.h"
|
|
|
|
"glibc/sysdeps/x86/bits/wordsize.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/sysdeps/x86/nptl/bits/pthreadtypes-arch.h"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/sysdeps/x86/sysdep.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/sysdeps/x86_64/crti.S"
|
|
|
|
"glibc/sysdeps/x86_64/crtn.S"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/sysdeps/x86_64/stackinfo.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/sysdeps/x86_64/start.S"
|
|
|
|
"glibc/sysdeps/x86_64/sysdep.h"
|
|
|
|
"glibc/time/bits/types/clock_t.h"
|
|
|
|
"glibc/time/bits/types/clockid_t.h"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/time/bits/types/struct_itimerspec.h"
|
|
|
|
"glibc/time/bits/types/struct_timespec.h"
|
|
|
|
"glibc/time/bits/types/struct_timeval.h"
|
|
|
|
"glibc/time/bits/types/struct_tm.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
"glibc/time/bits/types/time_t.h"
|
|
|
|
"glibc/time/bits/types/timer_t.h"
|
|
|
|
"glibc/time/sys/time.h"
|
2019-03-05 15:17:22 -08:00
|
|
|
"glibc/time/time.h"
|
2019-03-04 19:15:53 -08:00
|
|
|
)
|
|
|
|
|
2019-03-05 19:45:41 -08:00
|
|
|
set(ZIG_LIBUNWIND_FILES
|
|
|
|
"include/__libunwind_config.h"
|
|
|
|
"include/libunwind.h"
|
|
|
|
"include/mach-o/compact_unwind_encoding.h"
|
|
|
|
"include/unwind.h"
|
|
|
|
"src/AddressSpace.hpp"
|
|
|
|
"src/CompactUnwinder.hpp"
|
|
|
|
"src/DwarfInstructions.hpp"
|
|
|
|
"src/DwarfParser.hpp"
|
|
|
|
"src/EHHeaderParser.hpp"
|
|
|
|
"src/RWMutex.hpp"
|
|
|
|
"src/Registers.hpp"
|
|
|
|
"src/Unwind-EHABI.cpp"
|
|
|
|
"src/Unwind-EHABI.h"
|
|
|
|
"src/Unwind-seh.cpp"
|
|
|
|
"src/Unwind-sjlj.c"
|
|
|
|
"src/UnwindCursor.hpp"
|
|
|
|
"src/UnwindLevel1-gcc-ext.c"
|
|
|
|
"src/UnwindLevel1.c"
|
|
|
|
"src/UnwindRegistersRestore.S"
|
|
|
|
"src/UnwindRegistersSave.S"
|
|
|
|
"src/Unwind_AppleExtras.cpp"
|
|
|
|
"src/assembly.h"
|
|
|
|
"src/config.h"
|
|
|
|
"src/dwarf2.h"
|
|
|
|
"src/libunwind.cpp"
|
|
|
|
"src/libunwind_ext.h"
|
|
|
|
)
|
|
|
|
|
|
|
|
set(ZIG_LIBCXX_FILES
|
|
|
|
"include/__bit_reference"
|
|
|
|
"include/__bsd_locale_defaults.h"
|
|
|
|
"include/__bsd_locale_fallbacks.h"
|
|
|
|
"include/__config"
|
|
|
|
"include/__config_site.in"
|
|
|
|
"include/__debug"
|
|
|
|
"include/__errc"
|
|
|
|
"include/__functional_03"
|
|
|
|
"include/__functional_base"
|
|
|
|
"include/__functional_base_03"
|
|
|
|
"include/__hash_table"
|
|
|
|
"include/__libcpp_version"
|
|
|
|
"include/__locale"
|
|
|
|
"include/__mutex_base"
|
|
|
|
"include/__node_handle"
|
|
|
|
"include/__nullptr"
|
|
|
|
"include/__split_buffer"
|
|
|
|
"include/__sso_allocator"
|
|
|
|
"include/__std_stream"
|
|
|
|
"include/__string"
|
|
|
|
"include/__threading_support"
|
|
|
|
"include/__tree"
|
|
|
|
"include/__tuple"
|
|
|
|
"include/__undef_macros"
|
|
|
|
"include/algorithm"
|
|
|
|
"include/any"
|
|
|
|
"include/array"
|
|
|
|
"include/atomic"
|
|
|
|
"include/bit"
|
|
|
|
"include/bitset"
|
|
|
|
"include/cassert"
|
|
|
|
"include/ccomplex"
|
|
|
|
"include/cctype"
|
|
|
|
"include/cerrno"
|
|
|
|
"include/cfenv"
|
|
|
|
"include/cfloat"
|
|
|
|
"include/charconv"
|
|
|
|
"include/chrono"
|
|
|
|
"include/cinttypes"
|
|
|
|
"include/ciso646"
|
|
|
|
"include/climits"
|
|
|
|
"include/clocale"
|
|
|
|
"include/cmath"
|
|
|
|
"include/codecvt"
|
|
|
|
"include/compare"
|
|
|
|
"include/complex"
|
|
|
|
"include/complex.h"
|
|
|
|
"include/condition_variable"
|
|
|
|
"include/csetjmp"
|
|
|
|
"include/csignal"
|
|
|
|
"include/cstdarg"
|
|
|
|
"include/cstdbool"
|
|
|
|
"include/cstddef"
|
|
|
|
"include/cstdint"
|
|
|
|
"include/cstdio"
|
|
|
|
"include/cstdlib"
|
|
|
|
"include/cstring"
|
|
|
|
"include/ctgmath"
|
|
|
|
"include/ctime"
|
|
|
|
"include/ctype.h"
|
|
|
|
"include/cwchar"
|
|
|
|
"include/cwctype"
|
|
|
|
"include/deque"
|
|
|
|
"include/errno.h"
|
|
|
|
"include/exception"
|
|
|
|
"include/experimental/__config"
|
|
|
|
"include/experimental/__memory"
|
|
|
|
"include/experimental/algorithm"
|
|
|
|
"include/experimental/any"
|
|
|
|
"include/experimental/chrono"
|
|
|
|
"include/experimental/coroutine"
|
|
|
|
"include/experimental/deque"
|
|
|
|
"include/experimental/filesystem"
|
|
|
|
"include/experimental/forward_list"
|
|
|
|
"include/experimental/functional"
|
|
|
|
"include/experimental/iterator"
|
|
|
|
"include/experimental/list"
|
|
|
|
"include/experimental/map"
|
|
|
|
"include/experimental/memory_resource"
|
|
|
|
"include/experimental/numeric"
|
|
|
|
"include/experimental/optional"
|
|
|
|
"include/experimental/propagate_const"
|
|
|
|
"include/experimental/ratio"
|
|
|
|
"include/experimental/regex"
|
|
|
|
"include/experimental/set"
|
|
|
|
"include/experimental/simd"
|
|
|
|
"include/experimental/string"
|
|
|
|
"include/experimental/string_view"
|
|
|
|
"include/experimental/system_error"
|
|
|
|
"include/experimental/tuple"
|
|
|
|
"include/experimental/type_traits"
|
|
|
|
"include/experimental/unordered_map"
|
|
|
|
"include/experimental/unordered_set"
|
|
|
|
"include/experimental/utility"
|
|
|
|
"include/experimental/vector"
|
|
|
|
"include/ext/__hash"
|
|
|
|
"include/ext/hash_map"
|
|
|
|
"include/ext/hash_set"
|
|
|
|
"include/filesystem"
|
|
|
|
"include/float.h"
|
|
|
|
"include/forward_list"
|
|
|
|
"include/fstream"
|
|
|
|
"include/functional"
|
|
|
|
"include/future"
|
|
|
|
"include/initializer_list"
|
|
|
|
"include/inttypes.h"
|
|
|
|
"include/iomanip"
|
|
|
|
"include/ios"
|
|
|
|
"include/iosfwd"
|
|
|
|
"include/iostream"
|
|
|
|
"include/istream"
|
|
|
|
"include/iterator"
|
|
|
|
"include/limits"
|
|
|
|
"include/limits.h"
|
|
|
|
"include/list"
|
|
|
|
"include/locale"
|
|
|
|
"include/locale.h"
|
|
|
|
"include/map"
|
|
|
|
"include/math.h"
|
|
|
|
"include/memory"
|
|
|
|
"include/module.modulemap"
|
|
|
|
"include/mutex"
|
|
|
|
"include/new"
|
|
|
|
"include/numeric"
|
|
|
|
"include/optional"
|
|
|
|
"include/ostream"
|
|
|
|
"include/queue"
|
|
|
|
"include/random"
|
|
|
|
"include/ratio"
|
|
|
|
"include/regex"
|
|
|
|
"include/scoped_allocator"
|
|
|
|
"include/set"
|
|
|
|
"include/setjmp.h"
|
|
|
|
"include/shared_mutex"
|
|
|
|
"include/span"
|
|
|
|
"include/sstream"
|
|
|
|
"include/stack"
|
|
|
|
"include/stdbool.h"
|
|
|
|
"include/stddef.h"
|
|
|
|
"include/stdexcept"
|
|
|
|
"include/stdint.h"
|
|
|
|
"include/stdio.h"
|
|
|
|
"include/stdlib.h"
|
|
|
|
"include/streambuf"
|
|
|
|
"include/string"
|
|
|
|
"include/string.h"
|
|
|
|
"include/string_view"
|
|
|
|
"include/strstream"
|
|
|
|
"include/support/android/locale_bionic.h"
|
|
|
|
"include/support/fuchsia/xlocale.h"
|
|
|
|
"include/support/ibm/limits.h"
|
|
|
|
"include/support/ibm/locale_mgmt_aix.h"
|
|
|
|
"include/support/ibm/support.h"
|
|
|
|
"include/support/ibm/xlocale.h"
|
|
|
|
"include/support/musl/xlocale.h"
|
|
|
|
"include/support/newlib/xlocale.h"
|
|
|
|
"include/support/solaris/floatingpoint.h"
|
|
|
|
"include/support/solaris/wchar.h"
|
|
|
|
"include/support/solaris/xlocale.h"
|
|
|
|
"include/support/win32/limits_msvc_win32.h"
|
|
|
|
"include/support/win32/locale_win32.h"
|
|
|
|
"include/support/xlocale/__nop_locale_mgmt.h"
|
|
|
|
"include/support/xlocale/__posix_l_fallback.h"
|
|
|
|
"include/support/xlocale/__strtonum_fallback.h"
|
|
|
|
"include/support/xlocale/xlocale.h"
|
|
|
|
"include/system_error"
|
|
|
|
"include/tgmath.h"
|
|
|
|
"include/thread"
|
|
|
|
"include/tuple"
|
|
|
|
"include/type_traits"
|
|
|
|
"include/typeindex"
|
|
|
|
"include/typeinfo"
|
|
|
|
"include/unordered_map"
|
|
|
|
"include/unordered_set"
|
|
|
|
"include/utility"
|
|
|
|
"include/valarray"
|
|
|
|
"include/variant"
|
|
|
|
"include/vector"
|
|
|
|
"include/version"
|
|
|
|
"include/wchar.h"
|
|
|
|
"include/wctype.h"
|
|
|
|
)
|
|
|
|
|
2018-01-04 19:46:26 -08:00
|
|
|
if(MSVC)
|
|
|
|
set(MSVC_DIA_SDK_DIR "$ENV{VSINSTALLDIR}DIA SDK")
|
|
|
|
if (IS_DIRECTORY ${MSVC_DIA_SDK_DIR})
|
|
|
|
set(ZIG_DIA_GUIDS_LIB "${MSVC_DIA_SDK_DIR}/lib/amd64/diaguids.lib")
|
|
|
|
string(REGEX REPLACE "\\\\" "\\\\\\\\" ZIG_DIA_GUIDS_LIB_ESCAPED "${ZIG_DIA_GUIDS_LIB}")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2017-10-01 15:29:50 -07:00
|
|
|
set(ZIG_LIB_DIR "lib/zig")
|
|
|
|
set(C_HEADERS_DEST "${ZIG_LIB_DIR}/include")
|
2019-03-04 19:15:53 -08:00
|
|
|
set(LIBC_FILES_DEST "${ZIG_LIB_DIR}/libc")
|
2019-03-05 19:45:41 -08:00
|
|
|
set(LIBUNWIND_FILES_DEST "${ZIG_LIB_DIR}/libunwind")
|
|
|
|
set(LIBCXX_FILES_DEST "${ZIG_LIB_DIR}/libcxx")
|
2017-10-01 15:29:50 -07:00
|
|
|
set(ZIG_STD_DEST "${ZIG_LIB_DIR}/std")
|
2015-08-05 15:23:15 -07:00
|
|
|
set(CONFIGURE_OUT_FILE "${CMAKE_BINARY_DIR}/config.h")
|
|
|
|
configure_file (
|
|
|
|
"${CMAKE_SOURCE_DIR}/src/config.h.in"
|
|
|
|
${CONFIGURE_OUT_FILE}
|
|
|
|
)
|
|
|
|
|
2015-11-26 00:29:52 -08:00
|
|
|
include_directories(
|
|
|
|
${CMAKE_SOURCE_DIR}
|
|
|
|
${CMAKE_BINARY_DIR}
|
|
|
|
"${CMAKE_SOURCE_DIR}/src"
|
|
|
|
)
|
|
|
|
|
2018-09-05 09:10:53 -07:00
|
|
|
# These have to go before the -Wno- flags
|
|
|
|
set(EXE_CFLAGS "-std=c++11")
|
2018-09-05 07:18:12 -07:00
|
|
|
if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
|
|
|
|
if(MSVC)
|
|
|
|
set(EXE_CFLAGS "${EXE_CFLAGS} /w")
|
|
|
|
elseif(MINGW)
|
|
|
|
set(EXE_CFLAGS "${EXE_CFLAGS} -Wall -Werror -Wno-error=format= -Wno-error=format -Wno-error=format-extra-args")
|
|
|
|
else()
|
|
|
|
set(EXE_CFLAGS "${EXE_CFLAGS} -Werror -Wall")
|
|
|
|
endif()
|
2016-02-16 19:34:45 -08:00
|
|
|
endif()
|
|
|
|
|
2017-09-12 21:17:19 -07:00
|
|
|
if(MSVC)
|
2018-09-05 09:10:53 -07:00
|
|
|
set(EXE_CFLAGS "${EXE_CFLAGS}")
|
2017-09-12 21:17:19 -07:00
|
|
|
else()
|
2018-09-05 09:10:53 -07:00
|
|
|
set(EXE_CFLAGS "${EXE_CFLAGS} -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D_GNU_SOURCE -fno-exceptions -fno-rtti -Werror=strict-prototypes -Werror=old-style-definition -Werror=type-limits -Wno-missing-braces")
|
2018-09-17 21:13:17 -07:00
|
|
|
if(MINGW)
|
|
|
|
set(EXE_CFLAGS "${EXE_CFLAGS} -D__USE_MINGW_ANSI_STDIO -Wno-pedantic-ms-format")
|
|
|
|
endif()
|
2017-09-10 13:05:18 -07:00
|
|
|
endif()
|
2017-09-12 21:17:19 -07:00
|
|
|
|
2018-09-11 14:29:18 -07:00
|
|
|
set(BLAKE_CFLAGS "-std=c99")
|
2018-09-05 07:18:12 -07:00
|
|
|
|
2016-04-23 09:57:38 -07:00
|
|
|
set(EXE_LDFLAGS " ")
|
2017-09-23 15:46:03 -07:00
|
|
|
if(MINGW)
|
|
|
|
set(EXE_LDFLAGS "-static -static-libgcc -static-libstdc++")
|
2017-10-15 16:04:19 -07:00
|
|
|
elseif(MSVC)
|
|
|
|
set(EXE_LDFLAGS "/STACK:16777216")
|
2018-03-30 10:20:13 -07:00
|
|
|
elseif(ZIG_STATIC)
|
2018-09-27 12:07:51 -07:00
|
|
|
if(APPLE)
|
2018-09-27 19:27:52 -07:00
|
|
|
set(EXE_LDFLAGS "-static-libgcc -static-libstdc++")
|
2018-09-27 12:07:51 -07:00
|
|
|
else()
|
|
|
|
set(EXE_LDFLAGS "-static")
|
|
|
|
endif()
|
2017-09-23 15:46:03 -07:00
|
|
|
else()
|
|
|
|
set(EXE_LDFLAGS " ")
|
|
|
|
endif()
|
2016-04-23 09:57:38 -07:00
|
|
|
if(ZIG_TEST_COVERAGE)
|
|
|
|
set(EXE_CFLAGS "${EXE_CFLAGS} -fprofile-arcs -ftest-coverage")
|
2017-09-23 15:46:03 -07:00
|
|
|
set(EXE_LDFLAGS "${EXE_LDFLAGS} -fprofile-arcs -ftest-coverage")
|
2016-04-23 09:57:38 -07:00
|
|
|
endif()
|
2015-08-05 15:23:15 -07:00
|
|
|
|
2017-12-26 16:44:08 -08:00
|
|
|
add_library(zig_cpp STATIC ${ZIG_CPP_SOURCES})
|
2017-12-26 17:04:09 -08:00
|
|
|
set_target_properties(zig_cpp PROPERTIES
|
|
|
|
COMPILE_FLAGS ${EXE_CFLAGS}
|
|
|
|
)
|
2017-12-26 16:44:08 -08:00
|
|
|
|
2018-09-11 14:29:18 -07:00
|
|
|
add_library(embedded_blake STATIC ${BLAKE_SOURCES})
|
|
|
|
set_target_properties(embedded_blake PROPERTIES
|
|
|
|
COMPILE_FLAGS "${BLAKE_CFLAGS} -O3"
|
2018-09-10 06:46:15 -07:00
|
|
|
)
|
|
|
|
|
2015-08-05 15:23:15 -07:00
|
|
|
add_executable(zig ${ZIG_SOURCES})
|
|
|
|
set_target_properties(zig PROPERTIES
|
2016-04-23 09:57:38 -07:00
|
|
|
COMPILE_FLAGS ${EXE_CFLAGS}
|
|
|
|
LINK_FLAGS ${EXE_LDFLAGS}
|
|
|
|
)
|
2017-09-10 13:05:18 -07:00
|
|
|
|
2015-08-05 15:23:15 -07:00
|
|
|
target_link_libraries(zig LINK_PUBLIC
|
2017-12-26 16:44:08 -08:00
|
|
|
zig_cpp
|
2018-09-11 14:29:18 -07:00
|
|
|
embedded_blake
|
2017-09-13 22:44:22 -07:00
|
|
|
${SOFTFLOAT_LIBRARIES}
|
2016-01-26 23:01:49 -08:00
|
|
|
${CLANG_LIBRARIES}
|
2017-03-13 08:54:56 -07:00
|
|
|
${LLD_LIBRARIES}
|
2016-02-01 21:38:55 -08:00
|
|
|
${LLVM_LIBRARIES}
|
2017-03-29 22:18:12 -07:00
|
|
|
${CMAKE_THREAD_LIBS_INIT}
|
2015-08-05 15:23:15 -07:00
|
|
|
)
|
2018-03-10 15:23:08 -08:00
|
|
|
if(NOT MSVC)
|
2018-03-20 04:46:31 -07:00
|
|
|
target_link_libraries(zig LINK_PUBLIC ${LIBXML2})
|
2018-03-10 11:48:41 -08:00
|
|
|
endif()
|
2018-01-04 19:46:26 -08:00
|
|
|
if(ZIG_DIA_GUIDS_LIB)
|
|
|
|
target_link_libraries(zig LINK_PUBLIC ${ZIG_DIA_GUIDS_LIB})
|
|
|
|
endif()
|
|
|
|
|
2017-09-13 22:44:22 -07:00
|
|
|
if(MSVC OR MINGW)
|
2017-09-12 21:17:19 -07:00
|
|
|
target_link_libraries(zig LINK_PUBLIC version)
|
2017-09-10 13:05:18 -07:00
|
|
|
endif()
|
2015-08-05 15:23:15 -07:00
|
|
|
install(TARGETS zig DESTINATION bin)
|
2017-12-26 16:44:08 -08:00
|
|
|
install(TARGETS zig_cpp DESTINATION "${ZIG_CPP_LIB_DIR}")
|
2015-11-03 21:31:27 -08:00
|
|
|
|
2018-01-03 16:39:04 -08:00
|
|
|
foreach(file ${ZIG_C_HEADER_FILES})
|
|
|
|
get_filename_component(file_dir "${C_HEADERS_DEST}/${file}" DIRECTORY)
|
|
|
|
install(FILES "${CMAKE_SOURCE_DIR}/c_headers/${file}" DESTINATION "${file_dir}")
|
|
|
|
endforeach()
|
2016-03-01 18:00:03 -08:00
|
|
|
|
2018-01-03 16:39:04 -08:00
|
|
|
foreach(file ${ZIG_STD_FILES})
|
|
|
|
get_filename_component(file_dir "${ZIG_STD_DEST}/${file}" DIRECTORY)
|
|
|
|
install(FILES "${CMAKE_SOURCE_DIR}/std/${file}" DESTINATION "${file_dir}")
|
|
|
|
endforeach()
|
2019-02-15 21:42:56 -08:00
|
|
|
|
2019-03-04 19:15:53 -08:00
|
|
|
foreach(file ${ZIG_LIBC_FILES})
|
|
|
|
get_filename_component(file_dir "${LIBC_FILES_DEST}/${file}" DIRECTORY)
|
|
|
|
install(FILES "${CMAKE_SOURCE_DIR}/libc/${file}" DESTINATION "${file_dir}")
|
|
|
|
endforeach()
|
|
|
|
|
2019-03-05 19:45:41 -08:00
|
|
|
foreach(file ${ZIG_LIBUNWIND_FILES})
|
|
|
|
get_filename_component(file_dir "${LIBUNWIND_FILES_DEST}/${file}" DIRECTORY)
|
|
|
|
install(FILES "${CMAKE_SOURCE_DIR}/libunwind/${file}" DESTINATION "${file_dir}")
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
foreach(file ${ZIG_LIBCXX_FILES})
|
|
|
|
get_filename_component(file_dir "${LIBCXX_FILES_DEST}/${file}" DIRECTORY)
|
|
|
|
install(FILES "${CMAKE_SOURCE_DIR}/libcxx/${file}" DESTINATION "${file_dir}")
|
|
|
|
endforeach()
|
2019-03-04 19:15:53 -08:00
|
|
|
|
2019-02-15 21:42:56 -08:00
|
|
|
install(FILES "${CMAKE_SOURCE_DIR}/src-self-hosted/arg.zig" DESTINATION "${ZIG_STD_DEST}/special/fmt/")
|
|
|
|
install(FILES "${CMAKE_SOURCE_DIR}/src-self-hosted/main.zig" DESTINATION "${ZIG_STD_DEST}/special/fmt/")
|
|
|
|
install(FILES "${CMAKE_SOURCE_DIR}/src-self-hosted/errmsg.zig" DESTINATION "${ZIG_STD_DEST}/special/fmt/")
|