pub struct Build { /* private fields */ }Expand description
Represents the configuration for building LuaJIT 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.
This is required if called outside of a build script.
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.
This is required if called outside of a build script.
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.
This is optional and will default to the environment variable HOST if not set.
If called outside of a build script, it will default to the target architecture.
Sourcepub fn lua52compat(&mut self, enabled: bool) -> &mut Build
pub fn lua52compat(&mut self, enabled: bool) -> &mut Build
Enables or disables Lua 5.2 limited compatibility mode.
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