pub struct Build { /* private fields */ }Expand description
Represents the configuration for building Luau artifacts.
Implementations§
Source§impl Build
impl Build
Sourcepub fn out_dir<P: AsRef<Path>>(&mut self, path: P) -> &mut Build
pub fn out_dir<P: AsRef<Path>>(&mut self, path: P) -> &mut Build
Sets the output directory for the build artifacts.
Default is the environment variable OUT_DIR.
Sourcepub fn target(&mut self, target: &str) -> &mut Build
pub fn target(&mut self, target: &str) -> &mut Build
Sets the target architecture for the build.
Default is the environment variable TARGET.
Sourcepub fn host(&mut self, host: &str) -> &mut Build
pub fn host(&mut self, host: &str) -> &mut Build
Sets the host architecture for the build.
Default is the environment variable HOST.
Sourcepub fn set_max_cstack_size(&mut self, size: usize) -> &mut Build
pub fn set_max_cstack_size(&mut self, size: usize) -> &mut Build
Sets the maximum number of Lua stack slots that a C function can use.
Default is 1,000,000.
Sourcepub fn use_longjmp(&mut self, use: bool) -> &mut Build
pub fn use_longjmp(&mut self, use: bool) -> &mut Build
Sets whether to use longjmp instead of C++ exceptions.
Default is false.
Sourcepub fn enable_codegen(&mut self, enable: bool) -> &mut Build
pub fn enable_codegen(&mut self, enable: bool) -> &mut Build
Sets whether to enable the code generator (JIT).
Default is false.
Sourcepub fn set_vector_size(&mut self, size: usize) -> &mut Build
pub fn set_vector_size(&mut self, size: usize) -> &mut Build
Sets the vector size (3 or 4).
Default is 3.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Build
impl RefUnwindSafe for Build
impl Send for Build
impl Sync for Build
impl Unpin for Build
impl UnwindSafe for Build
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more