threaded exception handling
Some checks failed
demo.yaml / threaded exception handling (push) Failing after 0s
Some checks failed
demo.yaml / threaded exception handling (push) Failing after 0s
This commit is contained in:
parent
598c666e91
commit
c2bb9023d4
14 changed files with 237 additions and 127 deletions
|
|
@ -18,6 +18,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
*/
|
||||
|
||||
export module Crafter.Build:Module;
|
||||
import :CompileStatus;
|
||||
import std;
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
|
|
@ -27,19 +28,19 @@ namespace Crafter {
|
|||
public:
|
||||
std::vector<Module*> moduleDependencies;
|
||||
std::vector<ModulePartition*> partitionDependencies;
|
||||
std::atomic<bool> compiled;
|
||||
std::atomic<CompileStatus> compiled;
|
||||
bool needsRecompiling;
|
||||
bool checked = false;
|
||||
std::string name;
|
||||
fs::path path;
|
||||
ModulePartition(std::string&& name, fs::path&& path);
|
||||
bool Check(const fs::path& pcmDir);
|
||||
void Compile(const std::string_view clang, const fs::path& pcmDir, const fs::path& buildDir);
|
||||
void Compile(const std::string_view clang, const fs::path& pcmDir, const fs::path& buildDir, std::string& result);
|
||||
};
|
||||
|
||||
export class Module {
|
||||
public:
|
||||
std::atomic<bool> compiled;
|
||||
std::atomic<CompileStatus> compiled;
|
||||
bool needsRecompiling;
|
||||
bool checked = false;
|
||||
std::vector<std::unique_ptr<ModulePartition>> partitions;
|
||||
|
|
@ -49,6 +50,6 @@ namespace Crafter {
|
|||
Module(std::string&& name, fs::path&& path);
|
||||
Module(std::string&& name, fs::path&& path, std::vector<std::unique_ptr<ModulePartition>>&& partitions);
|
||||
bool Check(const fs::path& pcmDir);
|
||||
void Compile(const std::string_view clang, const fs::path& pcmDir, const fs::path& buildDir);
|
||||
void Compile(const std::string_view clang, const fs::path& pcmDir, const fs::path& buildDir, std::string& result);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue