-
Notifications
You must be signed in to change notification settings - Fork 100
Odin language support #151
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name = "odin" | ||
entrypoint = "main.odin" | ||
extensions = [ | ||
"odin" | ||
] | ||
packages = [ | ||
"llvm", | ||
"clang" | ||
] | ||
setup = [ | ||
"cd /tmp", | ||
"git clone https://github.com/odin-lang/odin", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Make sure to delete the files once you're done using them. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sadly, Odin requires its standard library to be relative to the itself. Therefore, at the minimum, the standard library cannot be deleted. How would you like me to handle that? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can the files be moved to somewhere like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes! That can be done |
||
"cd odin", | ||
"make", | ||
"ln -s /tmp/odin/odin /usr/local/bin/odin" | ||
] | ||
versionCommand = [ | ||
"odin", | ||
"version" | ||
] | ||
|
||
[run] | ||
command = [ | ||
"odin", | ||
"run", | ||
"." | ||
] | ||
|
||
[tests] | ||
|
||
[tests.hello] | ||
code = "package main\nimport \"core:fmt\"\nmain::proc(){fmt.println(\"Hello, World!\");}" | ||
output = "Hello, World!\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If possible, it'd be nice if you used a version of clang that other language configs are already using. At the very least, try to choose a specified version of clang and llvm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would clang-10 and llvm-10 work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that works 👍