286 Commits

Author SHA1 Message Date
Alex Rønne Petersen 0e8e987deb README: LLVM 21 -> 22 2026-04-26 07:10:46 +02:00
Andrew Kelley 67a5b6e5e8 delete @cImport from the language
closes #20630
2026-04-15 17:43:53 -07:00
nektro da78940dd2 add a few missing language tags to the README 2026-04-01 11:41:33 +02:00
Andrew Kelley 94355f1920 README: add information about installation via bootstrap.c
closes #31650
2026-03-25 01:43:12 -07:00
Alex Rønne Petersen 9598010303 README: update section about --libc-runtimes 2026-03-08 19:25:08 +01:00
Luna Schwalbe adc5a39de2 Change github links to codeberg 2025-12-05 14:12:39 +01:00
Alex Rønne Petersen 713716770e README: github -> codeberg for some links 2025-11-28 18:29:05 +01:00
Andrew Kelley fc8a51ece3 README: enhance plain text readability
this file is first and foremost plain text, and rendered markdown
second.
2025-11-26 09:55:00 -08:00
Eamon Burns 5cb72fce91 docs: fix up some README links
- https://github.com/ziglang/zig-bootstrap -> https://codeberg.org/ziglang/zig-bootstrap
- https://github.com/ziglang/qemu-static -> https://codeberg.org/ziglang/qemu-static
- Add <...> around bare URLs
- Link to tips inside README.md, rather than in CONTRIBUTING.md
2025-11-26 09:36:58 +01:00
Andrew Kelley 66fe584ead README: update some links 2025-11-24 06:39:28 -08:00
fkobi 9082b004b6 README: use HTTPS for releases.llvm.org 2025-11-23 20:54:20 +01:00
Andrew Kelley 9473011052 README: add some content from the wiki
also update the issue templates
2025-11-22 16:01:02 -08:00
Andrew Kelley f7d47aed47 README: LLVM-less builds are more capable now 2025-10-29 06:20:49 -07:00
Tea a50c2a4eae README: update llvm requirement to 21 2025-09-10 21:58:26 +02:00
Bingwu Zhang ec28888581 doc: Bump LLVM version in README
Reported-by: Ricky8955555 <rkmiao@duck.com>
Signed-off-by: Bingwu Zhang <xtex@aosc.io>
2025-04-13 08:11:40 +02:00
mochalins d83a3f1746 doc: Bump LLVM version in README 2024-09-19 23:06:09 -07:00
Andrew Kelley c262061129 update readme 2024-08-22 14:06:01 -07:00
Andrew Kelley 5f92a036f9 README: update how std lib docs are found in a release build 2024-08-07 00:48:32 -07:00
Eric Joldasov 2380f6aadc CMake: bump minimum required version to "3.15"
Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net>
2024-05-14 23:40:41 +05:00
Jordan Yates 17c1fa64c3 Bump required LLVM version in README.md 2024-05-11 04:13:17 -07:00
Marco F 40118c769f update list of missing features in no-LLVM built zig2 2024-04-20 17:26:56 -07:00
Andrew Kelley f8b38a174f adjust building from source without LLVM process
The idea here is that the zig2 executable is perhaps the more useful
deliverable until we implement our own optimization passes. This will
allow system packages to provide Zig, and use it to compile Zig
projects, all without LLVM!
2023-11-14 02:17:51 -05:00
Andrew Kelley 910143e54c README: make note of what features are missing without LLVM 2023-11-12 17:30:24 -07:00
Andrew Kelley 621e89a863 add bootstrap.c for building from source without LLVM
When a zig compiler without LLVM extensions is satisfactory, this
greatly simplified build-from-source process can be used.

This could be useful for users who only want to contribute to the
standard library, for example.
2023-11-12 17:30:24 -07:00
Tomasz Lisowski a9f25c7d64 Update LLVM version in README from 16.x to 17.x 2023-09-24 14:49:29 -07:00
dundargoc 5389af2c1c Fix minimum cmake version in README 2023-09-16 22:17:11 -07:00
snoire 5b51259141 Fix incorrect lib search paths in README
The README contains a typo stating 'zig/lib/' and '../zig/lib/' as the lib search paths. This should be 'lib/zig' and '../lib/zig'.
2023-08-12 10:29:42 -07:00
Andrew Kelley 9ada2f887c README makeover
This readme is now appropriate to include in release tarballs.
2023-07-23 15:49:18 -07:00
Andrew Kelley b09280b484 move some files to the .github directory 2022-03-24 12:22:23 -07:00
Andrew Kelley 4e38b3ed9b readme: dynamic logo light/dark 2022-01-03 17:45:09 -07:00
Andrew Kelley 74878565e5 readme: update introduction link 2021-02-19 16:38:04 -07:00
Andrew Kelley 1afea36a16 update readme installation instructions
The readme now links to the wiki for instructions on building from
source. I plan to make many updates to the wiki soon as I start to
provide tarballs for working on the compiler.
2020-12-07 17:50:14 -07:00
Yanis Zafirópulos c6747e1063 Copy editing :) 2020-10-26 18:39:34 +01:00
Andrew Kelley b61733a4b8 readme: rewrite the license section 2020-10-21 19:55:35 -07:00
Andrew Kelley c19dcafa17 Merge remote-tracking branch 'origin/master' into llvm11 2020-10-12 17:57:35 -07:00
Andrew Kelley 1951ecb228 add a code of conduct
this has always been the rules, they are just written down now.

also link to ziglearn.org in the readme
2020-10-08 22:48:16 -07:00
Andrew Kelley b5a36f676b Merge remote-tracking branch 'origin/master' into llvm11
Conflicts:
  cmake/Findllvm.cmake

The llvm11 branch changed 10's to 11's and master branch added the
"using LLVM_CONFIG_EXE" help message, so the resolution was to merge
these changes together.

I also added a check to make sure LLVM is built with AVR enabled, which
is no longer an experimental target.
2020-10-07 00:46:05 -07:00
Alexandros Naskos 9952a072cc Remove MSVC 2015 from supported compilers in README 2020-10-05 03:55:41 -04:00
Andrew Kelley 7067764ed3 Merge remote-tracking branch 'origin/master' into llvm11
The changes to install_files.h needed to put into src/libcxx.zig
2020-09-30 02:55:41 -07:00
Andrew Kelley 750b00c642 Merge remote-tracking branch 'origin/master' into stage2-zig-cc 2020-09-29 00:27:48 -07:00
Frank Denis 274c55b780 ZIG_WORKAROUND_4799 is not required with LLVM 10.0.1
That paragraph used to contradict the following one.
2020-09-23 22:05:43 -04:00
Calle Englund 94024a9fae Update macOS build instructions with workaround 2020-09-23 16:26:35 +02:00
Andrew Kelley e2d1f9874d Merge remote-tracking branch 'origin/master' into llvm11 2020-09-22 11:41:21 -07:00
Andrew Kelley dc478687d9 delete all stage1 c++ code not directly related to compiling stage2
Deleted 16,000+ lines of c++ code, including:
 * an implementation of blake hashing
 * the cache hash system
 * compiler.cpp
 * all the linking code, and everything having to do with building
   glibc, musl, and mingw-w64
 * much of the stage1 compiler internals got slimmed down since it
   now assumes it is always outputting an object file.

More stuff:
 * stage1 is now built with a different strategy: we have a tiny
   zig0.cpp which is a slimmed down version of what stage1 main.cpp used
   to be. Its only purpose is to build stage2 zig code into an object
   file, which is then linked by the host build system (cmake) into
   stage1. zig0.cpp uses the same C API that stage2 now has access to,
   so that stage2 zig code can call into stage1 c++ code.
   - stage1.h is
   - stage2.h is
   - stage1.zig is the main entry point for the Zig/C++
     hybrid compiler. It has the functions exported from Zig, called
     in C++, and bindings for the functions exported from C++, called
     from Zig.
 * removed the memory profiling instrumentation from stage1.
   Abandon ship!
 * Re-added the sections to the README about how to build stage2 and
   stage3.
 * stage2 now knows as a comptime boolean whether it is being compiled
   as part of stage1 or as stage2.
   - TODO use this flag to call into stage1 for compiling zig code.
 * introduce -fdll-export-fns and -fno-dll-export-fns and clarify
   its relationship to link_mode (static/dynamic)
 * implement depending on LLVM to detect native target cpu features when
   LLVM extensions are enabled and zig lacks CPU feature detection for
   that target architecture.
 * C importing is broken, will need some stage2 support to function
   again.
2020-09-17 18:29:38 -07:00
Andrew Kelley bee34f5d03 add a manifesto to the readme 2020-09-11 11:30:21 -07:00
Andrew Kelley c354f074fa Merge remote-tracking branch 'origin/master' into llvm11 2020-08-31 15:49:44 -07:00
Andrew Kelley 4e97cf50d2 readme: link to wiki page for installing from a package manager 2020-08-31 14:41:01 -07:00
Andrew Kelley cd91e17b73 update LLVM 10 version numbers to 11 2020-07-24 16:49:43 -07:00
Andrew Kelley 14e07e9a72 clean up readme 2020-07-03 04:43:05 +00:00
Timothee Cour 9a7f05378f fix https://github.com/ziglang/zig/issues/4799 2020-07-03 04:40:25 +00:00