0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-20 15:38:53 +02:00
construct/include/ircd/gpt/pipe/code.h

35 lines
1.1 KiB
C
Raw Normal View History

2021-04-02 22:01:38 +02:00
// Matrix Construct
//
// Copyright (C) Matrix Construct Developers, Authors & Contributors
// Copyright (C) 2016-2021 Jason Volk <jason@zemos.net>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice is present in all copies. The
// full license for this software is available in the LICENSE file.
#pragma once
#define HAVE_IRCD_GPT_PIPE_CODE_H
/// Pipe code segment.
struct ircd::gpt::pipe::code
:cl::code
{
static conf::item<std::string> default_path;
2022-06-20 03:59:29 +02:00
static conf::item<std::string> default_compile_opts;
static conf::item<std::string> default_link_opts;
static conf::item<std::string> cache_path;
static string_view make_cache_path(const mutable_buffer &);
2022-06-20 03:59:29 +02:00
static cl::code from_cache();
static cl::code from_source(const string_view &comp_opts = {}, const string_view &link_opts = {});
static cl::code from_bitcode(const string_view &link_opts = {});
void set_cache(const string_view &path);
bool put_cache();
2021-04-02 22:01:38 +02:00
code();
~code() noexcept;
};