fish-shell/src
Mahmoud Al-Qudsi 33f33c5f41 Simplify (and fix?) build.rs HAVE_XXX detection
Since none of the compiles(xxx) calls are to particularly complex code, we can
just use `rsconf` directly to test for the presence of the symbols or headers as
needed.

Note that it seems at least some of the previous detection was not working
correctly; in particular HAVE_PIPE2 was evaluating to false on my WSL install
where pipe2(2) was available (caught because it revealed some compilation errors
in that conditional compilation path after porting).

I kept the cfg names and the tests themselves mostly as-is, though we might want
to change that to conform with the rust convention of lowercase cfg names and
decide whether we want to prefix all these with have_, fish_, or nothing at all.
Also the posix_spawn() test should probably check for the symbol `posix_spawn()`
rather than the header `spawn.h` since we don't use it via the header but rather
via the symbol (but in reality they're almost certainly going to give the same
result).
2024-01-13 15:45:42 -06:00
..
bin fix permissions on source file 2024-01-13 11:12:02 +08:00
builtins Remove L! from sprintf calls 2024-01-13 08:52:54 +01:00
env Remove L! from sprintf calls 2024-01-13 08:52:54 +01:00
fork_exec Use cfg directly instead of going through features 2024-01-13 15:16:47 -06:00
history Move fish-rust to project root 2024-01-13 03:58:33 +01:00
tests Further cleanup of FdMonitor 2024-01-13 12:51:36 -08:00
universal_notifier Move fish-rust to project root 2024-01-13 03:58:33 +01:00
widecharwidth Move fish-rust to project root 2024-01-13 03:58:33 +01:00
wutil Use cfg directly instead of going through features 2024-01-13 15:16:47 -06:00
abbrs.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
ast.rs Remove L! from sprintf calls 2024-01-13 08:52:54 +01:00
autoload.rs Remove widestring-suffix uses 2024-01-13 08:52:54 +01:00
color.rs Remove widestring-suffix uses 2024-01-13 08:52:54 +01:00
common.rs Fix unused code warning on cannot-be-WSL platforms 2024-01-13 13:15:31 -06:00
complete.rs Remove L! from sprintf calls 2024-01-13 08:52:54 +01:00
curses.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
editable_line.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
env_dispatch.rs Use cfg directly instead of going through features 2024-01-13 15:16:47 -06:00
env_universal_common.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
event.rs Remove L! from sprintf calls 2024-01-13 08:52:54 +01:00
exec.rs Remove widestring-suffix uses 2024-01-13 08:52:54 +01:00
expand.rs Remove L! from sprintf calls 2024-01-13 08:52:54 +01:00
fallback.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
fd_monitor.rs Further cleanup of FdMonitor 2024-01-13 12:51:36 -08:00
fd_readable_set.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
fds.rs Fix build error when HAVE_PIPE2 is true 2024-01-13 15:44:03 -06:00
fish_test_helper.cpp Initial Rust commit 2023-02-02 19:34:47 -07:00
flog.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
function.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
future_feature_flags.rs clippy 2024-01-13 08:52:54 +01:00
future.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
global_safety.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
highlight.rs Remove L! from sprintf calls 2024-01-13 08:52:54 +01:00
history.rs Use cfg directly instead of going through features 2024-01-13 15:16:47 -06:00
input_common.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
input.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
io.rs Further cleanup of FdMonitor 2024-01-13 12:51:36 -08:00
job_group.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
kill.rs Remove L! from sprintf calls 2024-01-13 08:52:54 +01:00
lib.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
libc.c Move fish-rust to project root 2024-01-13 03:58:33 +01:00
libc.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
locale.rs Use cfg directly instead of going through features 2024-01-13 15:16:47 -06:00
nix.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
null_terminated_array.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
operation_context.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
output.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
pager.rs Remove L! from sprintf calls 2024-01-13 08:52:54 +01:00
parse_constants.rs Remove L! from sprintf calls 2024-01-13 08:52:54 +01:00
parse_execution.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
parse_tree.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
parse_util.rs Remove L! from sprintf calls 2024-01-13 08:52:54 +01:00
parser_keywords.rs Remove widestring-suffix uses 2024-01-13 08:52:54 +01:00
parser.rs Remove widestring-suffix uses 2024-01-13 08:52:54 +01:00
path.rs Remove L! from sprintf calls 2024-01-13 08:52:54 +01:00
pointer.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
print_help.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
proc.rs clippy 2024-01-13 08:52:54 +01:00
re.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
reader_history_search.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
reader.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
redirection.rs Remove L! from sprintf calls 2024-01-13 08:52:54 +01:00
screen.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
signal.rs Use cfg directly instead of going through features 2024-01-13 15:16:47 -06:00
termsize.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
threads.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
timer.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
tinyexpr.rs Remove widestring-suffix uses 2024-01-13 08:52:54 +01:00
tokenizer.rs Remove widestring-suffix uses 2024-01-13 08:52:54 +01:00
topic_monitor.rs Remove widestring-suffix uses 2024-01-13 08:52:54 +01:00
trace.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
util.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
wait_handle.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
wchar_ext.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
wchar.rs Remove widestring-suffix uses 2024-01-13 08:52:54 +01:00
wcstringutil.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
wgetopt.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
wildcard.rs Remove L! from sprintf calls 2024-01-13 08:52:54 +01:00