Pedro Alves
3e09762b7d
Stop 'configure --enable-threading' if std::thread doesn't work
...
Currently, if you configure gdb with explicit --enable-threading, but
then configure detects std::thread does not work, configure silently
disables threading support and continues configuring.
This patch makes that scenario cause a configuration error, like so:
$ /home/pedro/gdb/src/configure --enable-threading && make
...
configure: error: std::thread does not work; disable threading
make[1]: *** [Makefile:11225: configure-gdbsupport] Error 1
make[1]: Leaving directory '/home/pedro/gdb/build-windows-threads'
make: *** [Makefile:1041: all] Error 2
$
Additionally, if you don't explicitly pass --enable-threading, and
std::thread does not work, we will now get a warning (and the build
continues):
$ /home/pedro/gdb/src/configure && make
...
configure: WARNING: std::thread does not work; disabling threading
...
This is similar to how we handle --enable-tui and missing curses. The
code and error/warning messages were borrowed from there.
Change-Id: I73a8b580d1e2a796b23136920c0e181408ae1b22
Approved-By: Tom Tromey <tom@tromey.com>
2024-05-16 13:03:58 +01:00
..
2024-01-12 15:49:57 +00:00
2024-01-10 19:52:52 -05:00
2023-11-15 12:53:04 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-02-21 13:30:19 -05:00
2024-03-26 21:13:22 -04:00
2024-02-27 10:30:29 -07:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-02-21 13:30:17 -05:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-05-16 13:03:58 +01:00
2024-01-12 15:49:57 +00:00
2023-11-15 12:53:04 +00:00
2024-05-16 13:03:58 +01:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-04-21 19:54:27 -06:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-02-27 09:46:31 -07:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-03-21 12:21:24 -06:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-03-14 21:28:44 +01:00
2024-03-19 14:41:51 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:09:19 -04:00
2024-03-26 21:09:19 -04:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-02-21 13:30:19 -05:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-02-21 13:30:19 -05:00
2024-01-12 15:49:57 +00:00
2024-04-18 10:31:54 -04:00
2024-04-18 10:31:54 -04:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-04-22 21:34:19 -04:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-04-17 10:49:32 -04:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00