Initial Commit
This commit is contained in:
789 files changed
+149185
No files matched your search
@@ -0,0 +1,25 @@
|
||||
#! @file target.sakura
|
||||
#! @author John Christman (sorakatadzuma@gmail.com)
|
||||
#! @copyright Malunal Studios, LLC.
|
||||
#! @license MIT
|
||||
#!
|
||||
#! Contains the intrinsics naming the platform the program was checked for, as
|
||||
#! text.
|
||||
#!
|
||||
#! Code only for some platforms goes in `when os == linux { ... }`, or in a file
|
||||
#! declared `module path when os == linux;`, since both leave out what other
|
||||
#! platforms have. These give the same facts where code wants them as values.
|
||||
|
||||
module core;
|
||||
|
||||
#! The operating system the program was checked for.
|
||||
#! @returns `linux`, `macos`, `windows`, `freebsd`, or `unknown`.
|
||||
@intrinsic pub def os(): strview;
|
||||
|
||||
#! The processor the program was checked for.
|
||||
#! @returns `x86_64`, `aarch64`, or `unknown`.
|
||||
@intrinsic pub def arch(): strview;
|
||||
|
||||
#! How the program runs.
|
||||
#! @returns `vm` when run by `sakura run`, or `native` as an executable.
|
||||
@intrinsic pub def backend(): strview;
|
||||
Reference in new issue
Block a user