Initial commit

This commit is contained in:
Riyyi
2026-07-30 21:23:43 +02:00
commit 30876992f1
7 changed files with 50 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
# editorconfig.org
root = true
[*]
indent_style = tab
indent_size = 4
end_of_line = lf
charset = utf-8
+1
View File
@@ -0,0 +1 @@
*.sh text eol=lf
+8
View File
@@ -0,0 +1,8 @@
# Files
.DS_Store
/hello-world
# Directories
*.dSYM/
Executable
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
PROJECT="hello-world"
VERSION="dev-$(date -u '+%Y-%m-%d')-$(git rev-parse --short HEAD)"
if [[ $1 == "debug" ]]
then
shift
odin build src/ -show-timings -collection:src=src -out:$PROJECT -microarch:native -use-separate-modules -define:VERSION=$VERSION-debug -debug $@
exit 0
fi
odin build src/ -show-timings -collection:src=src -out:$PROJECT -microarch:native -o:speed -define:VERSION=$VERSION $@
Executable
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
odinfmt src/
+6
View File
@@ -0,0 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/DanielGavin/ols/master/misc/odinfmt.schema.json",
"character_width": 80,
"tabs": true,
"tabs_width": 4
}
+10
View File
@@ -0,0 +1,10 @@
package main
import "core:fmt"
VERSION :: #config(VERSION, "dev")
main :: proc() {
fmt.println("Hellope!")
fmt.println(VERSION)
}