memory allocation is forbidden. Some additional compiler directives
are supported.
+@item -fgo-embedcfg=@var{file}
+@cindex @option{-fgo-embedcfg}
+Identify a JSON file used to map patterns used with special
+@code{//go:embed} comments to the files named by the patterns. The
+JSON file should have two components: @code{Patterns} maps each
+pattern to a list of file names, and @code{Files} maps each file name
+to a full path to the file. This option is intended for use by the
+@command{go} command to implement @code{//go:embed}.
+
@item -g
@cindex @option{-g for gccgo}
This is the standard @command{gcc} option (@pxref{Debugging Options, ,
const char* prefix;
const char* relative_import_path;
const char* c_header;
+ const char* embedcfg;
Backend* backend;
Linemap* linemap;
bool check_divide_by_zero;
static const char *go_prefix = NULL;
static const char *go_relative_import_path = NULL;
static const char *go_c_header = NULL;
+static const char *go_embedcfg = NULL;
/* Language hooks. */
args.prefix = go_prefix;
args.relative_import_path = go_relative_import_path;
args.c_header = go_c_header;
+ args.embedcfg = go_embedcfg;
args.check_divide_by_zero = go_check_divide_zero;
args.check_divide_overflow = go_check_divide_overflow;
args.compiling_runtime = go_compiling_runtime;
go_c_header = arg;
break;
+ case OPT_fgo_embedcfg_:
+ go_embedcfg = arg;
+ break;
+
default:
/* Just return 1 to indicate that the option is valid. */
break;
Go Joined RejectNegative
-fgo-dump-<type> Dump Go frontend internal information.
+fgo-embedcfg=
+Go Joined RejectNegative
+-fgo-embedcfg=<file> List embedded files via go:embed
+
fgo-optimize-
Go Joined
-fgo-optimize-<type> Turn on optimization passes in the frontend.