Odin icon indicating copy to clipboard operation
Odin copied to clipboard

Hexadecimal number on `-define` build flag - silent compiler crash

Open awwdev opened this issue 2 years ago • 2 comments

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.

awwdev avatar May 03 '23 07:05 awwdev