Files
scriptc/native/llvm-codegen/src/emit.h
Chris Tate 401338f437 feat(compiler): add native LLVM object emission (#242)
* feat(compiler): add native LLVM object emission

- ship the pinned macOS arm64 LLVM helper and platform package
- add assembly/object CLI outputs, caching, diagnostics, and runtime ABI checks
- validate helper artifacts through CI, packaging, docs, and differential coverage

* fix(compiler): harden native LLVM emission

* fix(compiler): harden LLVM helper packaging

* fix(compiler): stabilize LLVM helper package size

* fix(compiler): harden native helper validation

* fix(compiler): harden LLVM helper verification

* fix(compiler): harden native object emission
2026-08-27 10:30:40 -05:00

23 lines
462 B
C++

#pragma once
#include <optional>
#include <string>
namespace scriptc {
struct EmitOptions {
std::string Input;
std::string Output;
std::string FileType = "obj";
std::string Target;
std::string OptLevel = "2";
std::string RelocationModel = "pic";
std::string DiagnosticFormat = "json";
std::string SourcePath;
};
std::optional<EmitOptions> parseEmitOptions(int Argc, char **Argv);
int emit(const EmitOptions &Options);
} // namespace scriptc