opt-level = "z", default config correction, and types

This commit is contained in:
rhpidfyre 2024-12-31 17:54:43 -05:00
parent 3e0830c082
commit 73b46b2a99
3 changed files with 20 additions and 18 deletions

View File

@ -9,6 +9,6 @@ liblambdashell = { path = "../liblambdashell" }
[profile.release]
strip = true
opt-level = "s"
opt-level = "z"
lto = true
codegen-units = 1

View File

@ -1,6 +1,6 @@
--!strict
local Username = Shell.system.username
local Hostname = Shell.system.hostname
local username = SHELL.SYSTEM.USERNAME
local hostname = SHELL.SYSTEM.HOSTNAME
Shell.prompt = `{Username}@{Hostname} λ `
SHELL.PROMPT = `{username}@{hostname} λ `

View File

@ -49,21 +49,23 @@ type SHELL = {
}
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
-- type text_on_foreground = {
-- ON_RED: func_map<string>,
-- ON_ORANGE: func_map<string>,
-- ON_YELLOW: func_map<string>,
-- ON_GREEN: func_map<string>,
-- ON_BLUE: func_map<string>,
-- ON_PURPLE: func_map<string>,
-- }
type text_colors = {
RED: func_map<string, string>,
ORANGE: func_map<string, string>,
YELLOW: func_map<string, string>,
GREEN: func_map<string, string>,
BLUE: func_map<string, string>,
PURPLE: func_map<string, string>,
RED: func_map<string, string>,
YELLOW: func_map<string, string>,
GREEN: func_map<string, string>,
BLUE: func_map<string, string>,
MAGENTA: func_map<string, string>,
GREY: func_map<string, string>,
BLACK: func_map<string, string>,
CYAN: func_map<string, string>,
WHITE: func_map<string, string>,
DARK_GREY: func_map<string, string>,
DARK_RED: func_map<string, string>,
DARK_GREEN: func_map<string, string>,
DARK_CYAN: func_map<string, string>,
DARK_YELLOW: func_map<string, string>,
DARK_MAGENTA: func_map<string, string>,
DARK_BLUE: func_map<string, string>,
}
type TERMINAL = {
OUT: {