Small fix for -fdump-ada-spec
[official-gcc.git] / gcc / opts-jobserver.h
blob4756be824a2c0231b73d42ed0bd2b28a7714c741
1 /* GNU make's jobserver related functionality.
2 Copyright (C) 2022-2023 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 3, or (at your option) any later
9 version.
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 for more details.
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>.
20 See dbgcnt.def for usage information. */
22 #ifndef GCC_JOBSERVER_H
23 #define GCC_JOBSERVER_H
25 using namespace std;
27 struct jobserver_info
29 /* Default constructor. */
30 jobserver_info ();
32 /* Connect to the server. */
33 void connect ();
35 /* Disconnect from the server. */
36 void disconnect ();
38 /* Get token from the server. */
39 bool get_token ();
41 /* Return token to the server. */
42 void return_token ();
44 /* Error message if there is a problem. */
45 string error_msg = "";
46 /* Skipped MAKEFLAGS where --jobserver-auth is skipped. */
47 string skipped_makeflags = "";
48 /* File descriptor for reading used for jobserver communication. */
49 int rfd = -1;
50 /* File descriptor for writing used for jobserver communication. */
51 int wfd = -1;
52 /* Named pipe path. */
53 string pipe_path = "";
54 /* Pipe file descriptor. */
55 int pipefd = -1;
56 /* Return true if jobserver is active. */
57 bool is_active = false;
58 /* Return true if communication with jobserver is working. */
59 bool is_connected = false;
62 #endif /* GCC_JOBSERVER_H */