Commit graph

43 commits

Author SHA1 Message Date
ObserverOfTime
2eeeed0f2a fix(make): fail properly on Windows 2024-08-17 00:51:27 -04:00
Amaan Qureshi
b40f342067
0.22.6 2024-05-05 16:47:18 -04:00
Will Lillis
3a42c27061
ci: add nightly rustfmt to workflow 2024-05-02 02:34:39 -04:00
Max Brunsfeld
cdd4688860 0.22.5 2024-04-14 10:17:04 -07:00
Max Brunsfeld
285257998c 0.22.4 2024-04-12 17:03:02 -07:00
Max Brunsfeld
a3d338781b 0.22.3 2024-04-12 15:10:49 -07:00
Amaan Qureshi
fc15f62133
0.22.2 2024-03-17 07:31:58 -04:00
ObserverOfTime
1ff40f5571 fix(lib): makefile installation 2024-03-12 18:14:58 -04:00
Amaan Qureshi
81d90c7cd8 fix(lib): makefile installation on macOS 2024-03-12 15:53:31 -04:00
Andreas Schneider
d4862ff9f7
build(lib): allow overriding CFLAGS on the commandline
If you package tree-sitter for a distribution, the distribution is
setting the CFLAGS which should be used for all packages.  Allow those
flags to be used.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2024-03-12 01:50:56 -04:00
Amaan Qureshi
1c38d34dea
0.22.1 2024-03-10 17:59:12 -04:00
Amaan Qureshi
0a5a564ea7
0.22.0 2024-03-10 17:15:08 -04:00
Amaan Qureshi
f7c13406c9 build: add uninstall command 2024-02-27 15:54:38 -05:00
ObserverOfTime
799833f9cf build: use c11 everywhere
And improve the makefiles
2024-02-27 15:54:38 -05:00
dundargoc
92690f2d3b build(lint): make lockfile check quiet 2024-02-26 11:00:03 +01:00
dundargoc
f707ab5b53 build(lint): detect if Cargo.lock needs to be updated 2024-02-24 13:54:57 +01:00
dundargoc
f0b315359a build: improve changelog settings
Quality of life improvements:

- automatically use `gh auth token` when running `make changelog`
- Add full links to related pull requests
- Include non-conventional commits
- Force group order by adding html comments
2024-02-23 11:29:18 +01:00
Amaan Qureshi
a5b7c2a584
fix: publish 0.21.0 to registries 2024-02-21 15:11:37 -05:00
dundargoc
48a1f12ca3 build: enable creating changelogs with git-cliff
Introduce a target called `changelog` that will use git-cliff to create
the changelog of the latest release.

Closes https://github.com/tree-sitter/tree-sitter/issues/527.
2024-02-18 11:44:31 +01:00
dundargoc
8759352542 build: add useful development targets to makefile 2024-02-09 13:19:28 +01:00
dundargoc
ff367ebf4c build: enable -pedantic
Co-authored-by: Patrick Thomson <patrickt@github.com>
2024-02-08 16:12:54 +01:00
Max Brunsfeld
f4e2f68f14 Merge branch 'master' into wasm-language 2023-10-27 12:11:43 +01:00
Andrew Hlynskyi
b412d86f19 fix: makefile should install only api.h header 2023-08-26 20:51:52 +03:00
Andrew Hlynskyi
bba9809390 fix: make install BSDs don't have -t option 2023-08-22 16:33:03 +03:00
Andrew Hlynskyi
897c187786 fix: make install should install files with default perms 2023-08-21 06:19:49 +03:00
James McCoy
545ef842de
Remove -Werror from default CFLAGS
Production builds shouldn't include -Werror by default since that could
cause spurious build failures when there are toolchain updates.

CI uses -Werror to prevent warnings, so that should be sufficient.
2023-08-18 14:23:19 -04:00
Andrew Hlynskyi
113d100250 Add an optional strip step to the Makefile
It can be used like:
  > make clean && make -j CC=clang AR=llvm-ar STRIP=llvm-strip
2023-08-17 15:39:14 +03:00
Andrew Hlynskyi
5e3df64a46 fix(lib): expose only symbols defined in api.h 2023-08-17 15:01:47 +03:00
Andrew Hlynskyi
cbe805d82a Allow override Makefile CFLAGS by appending and not by overwriting 2023-08-17 15:00:58 +03:00
Amaan Qureshi
13f6ec2b0c
fix: rename shadowed variables from -Wshadow warnings and apply some useful clang-tidy warnings 2023-07-19 18:12:26 -04:00
Andrew Hlynskyi
0e4ff0bb27 chore: fix lib version in Makefile and set it to 0.20.10 2023-04-16 23:39:01 +03:00
Andrew Hlynskyi
9ac55f79d1 Update Makefile VERSION to 0.20.9 from lib/Cargo.toml
Closes #1158
Closes #1608
2023-01-08 04:39:46 +02:00
Max Brunsfeld
042e6f9d57 Restucture wasm module, return a normal TSLanguage from load_language 2022-11-15 17:14:33 -08:00
Thomas Vigouroux
81d533d2d1
Fix compilation warnings (#635)
* lib: fix compilation warnings

* ci: add CFLAGS
2020-06-03 12:19:57 -07:00
Eli Schwartz
af498bc0c3
Add a simple Makefile-based build system.
This produces static/shared libraries as well as a pkg-config file, and
installs them to the standard Unix hierarchy. GNU Make is assumed as
features like $(wildcard ...) or $(shell uname) may not work elsewhere,
but it should otherwise build on most/all Unix platforms.

Note that we assume the following POSIX default rules/macros exist, so
we don't bother redefining them:
- pattern rules for compiling .c -> .o
- $(CC)
- $(AR)

Special note on the .pc file generation: we do most variable
replacements in one go, but delay @PREFIX@ so that we can first find
existing substring instances of the prefix value (if libdir/includedir
reside within the prefix), and update them to use a literal pkg-config
variable '${prefix}'. This is fairly compact (one single sed) while
still letting us produce pkg-config files that support runtime
redefinition à la cross-compilation.
2020-04-21 23:49:19 -04:00
Max Brunsfeld
67e008d15d Generate makefile with gyp
- Add gyp submodule
- Add script to generate makefile with gyp
- Switch travis build to do this
2014-03-03 13:20:44 -08:00
Max Brunsfeld
3c646d707a Add static library as make target 2014-03-02 00:07:00 -08:00
Max Brunsfeld
ded54a3a1a Fix some memory management bugs with trees 2014-03-01 00:25:05 -08:00
Max Brunsfeld
cdf63b6083 Add missing includes 2014-02-20 23:11:27 -08:00
Max Brunsfeld
9f0a395c0d Remove clang -stdlib flag in makefile 2014-02-19 09:24:55 -08:00
Max Brunsfeld
6b23a5ac0d Respect CXX env var in Makefile 2014-02-18 12:38:29 -08:00
Max Brunsfeld
2c56612650 Get makefile working 2014-02-18 09:07:00 -08:00
Max Brunsfeld
84c5bceb81 Initial commit 2013-11-05 22:15:19 -08:00