summary refs log tree commit diff stats
path: root/koch.nim.cfg
blob: c624b957732b2b3e454990f5d1d77e240a559496 (plain) (blame)
1
2
3
4
5
6
7
-d:booting

@if openbsd:
  # because openbsd getAppFilename was broken in v0.20.0
  # workaround see https://github.com/nim-lang/Nim/pull/14291
  --lib:lib
@end
#39;ll // return the value otherwise it will return fallback string. func getEnv(key, fallback string) string { // We use os.LookupEnv instead of using os.GetEnv and checking // if the length equals 0 because environment variable can be // set and be of length 0. User could've set key="" which // means the variable was set but the length is 0. There is no // reason why user would want to do this over here though. value, exists := os.LookupEnv(key) if !exists { value = fallback } return value }