James MacMahon
fd969fcaed
Support illumos / omnios during libclang search ( #141 )
...
Search for libclang under /opt/ooce/ when running on an illumos
derivative.
2022-05-18 01:27:02 -04:00
Kyle Mayes
4d3ddf781e
Refactor build script
2021-11-05 11:51:44 -04:00
Kyle Mayes
b0f84c2e77
Update license headers
2021-11-04 14:06:56 -04:00
Jessica Hamilton
509c148b2e
Add support for the Haiku operating system ( #136 )
2021-10-31 16:15:13 -04:00
Kyle Mayes
3c73194d4d
Fix clippy warnings and remove try_opt! macro
2021-09-02 23:36:27 -04:00
Kyle Mayes
c6eecc9cfb
Fix handling of paths containing glob characters ( #133 )
2021-09-02 23:30:54 -04:00
Jalal El Mansouri
c312bb3657
Add Scoop support on windows
...
[Scoop](https://github.com/lukesampson/scoop ) is a popular command-line installer used on Windows with a behavior similar to Homebrew on MacOS. It seems reasonable to have support for the default user installation path.
Instead of fetching the current user and restrict the search to it, I rely on having the glob failing on others users for lack of necessary permissions. If the maintainers feel more comfortable with a specific code path to handle this use case, I can do the extra changes. I also chose the current instead of globbing all the available versions.
2021-04-27 18:31:11 -04:00
Kyle Mayes
190aca71e3
Fix path separation logic in build script
2021-04-06 03:14:30 -04:00
Kyle Mayes
14bca53d27
Run rustfmt
2021-04-06 02:37:31 -04:00
Kyle Mayes
73b0ce56b6
Add Visual Studio LLVM component directory to search paths ( #121 )
2021-02-09 23:29:38 -05:00
Kyle Mayes
5911495ba2
Expand explanatory comment about tiebreaking
2020-11-17 02:20:42 -05:00
Michael Hackner
092f2dd743
Preserve order of searched libclang directories when breaking ties
...
`max_by_key` unintuitively picks the last element in case of a tie, but
we want the first since the collection we're iterating over is in
priority order.
2020-11-15 15:03:30 -08:00
Kyle Mayes
7c61ef78c9
Only show build script command warnings on failure
2020-07-14 00:52:30 -04:00
Kyle Mayes
065da93b84
Fix Rust and Clippy warnings ( #110 )
2020-07-04 12:36:42 -04:00
Lee Mracek
da505e9f3c
Add additional libclang pattern ( #102 )
2020-03-06 18:04:23 -05:00
Kyle Mayes
62f42b69af
Fix clippy warnings
2020-02-17 21:28:55 -05:00
Kyle Mayes
ad5b1d0c64
Improve LLVM_CONFIG_PATH documentation and warnings
2019-08-06 06:57:47 -04:00
Kyle Mayes
e6372d73c8
Allow LIBCLANG_PATH to refer to a specific libclang instance
2019-07-28 16:20:55 -04:00
Kyle Mayes
0f12c6fc80
Improve error message for failed executable invocations
2019-07-28 16:07:23 -04:00
Kyle Mayes
9ded894edb
Fix conflict caused by libclang-cpp
2019-07-28 15:32:21 -04:00
Kyle Mayes
e3a9fb35d8
Refactor
2019-07-28 15:24:35 -04:00
Kyle Mayes
75ee92acab
Run rustfmt
2019-07-28 14:51:27 -04:00
Kyle Mayes
5795507f82
Replace OS X with macOS
2019-07-28 14:50:07 -04:00
Igor Gnatenko
a562e9a478
Update glob to 0.3 ( #90 )
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com >
2019-07-28 13:41:20 -04:00
B YI
77af41fda4
Add lib64 path search on Linux ( #88 )
...
The libclang.so is located at `/usr/lib64/llvm/7/lib64/libclang.so` on my Gentoo linux, where`/usr/lib64/llvm/7/` can be obtained by `llvm-config --prefix`. It would be better to also search `lib64` subdirectory, as `lib` subdirectory does not exist on my system.
2019-03-26 19:10:38 -04:00
Kyle Mayes
c004376672
Changed llvm-config to be first search candidate on macOS
2019-02-17 10:55:56 -05:00
Kyle Mayes
6ca7d06de9
Revert "Improve version detection and selection"
...
This reverts commit 63e64a7737 .
2019-02-17 10:29:09 -05:00
Kyle Mayes
b33e2cf415
Revert "Add assert-minimum feature"
...
This reverts commit 825e8bd208 .
2019-02-17 10:24:49 -05:00
Kyle Mayes
825e8bd208
Add assert-minimum feature
2019-01-10 12:03:22 -05:00
Kyle Mayes
63e64a7737
Improve version detection and selection
2019-01-10 11:36:56 -05:00
Kyle Mayes
97be82e86d
Fix dynamic linking on macOS
2018-11-03 21:31:45 -04:00
Kyle Mayes
3d4d365b21
Fix finding libraries on Windows
2018-10-10 00:36:58 -04:00
Kyle Mayes
c3d9574c13
Improve runtime linking support on Linux
2018-10-07 14:36:06 -04:00
Reyk Floeter
b8c62931b8
Add support for versioned libraries on BSDs ( #82 )
...
* OpenBSD uses libclang.so.x.x instead of libclang-x.x.so
* Use libNAME.so.X.X on BSDs only, create -lNAME string correctly
2018-10-06 12:34:53 -04:00
Kyle Mayes
ea343310d8
Improve finding of libraries on macOS
2018-09-09 16:01:28 -04:00
Kyle Mayes
cc11523200
Rework finding of libraries
2018-09-03 18:32:27 -04:00