Odin
Odin copied to clipboard
Hexadecimal number on `-define` build flag - silent compiler crash
Context
Odin dev-2023-01
Windows
Bug
Test :: #config(Test, 0)
main :: proc() {
fmt.println(Test)
}
Build flag:
-define:Test=35e4218
The compiler will silently crash (without an error message) and exit with code 1. Seems like the hexadecimal number is the problem.
Workaround: Prefix the hexadecimal number with 0x and the compiler will accept it.