mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-16 05:00:59 +08:00
* 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
23 lines
462 B
C++
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
|