bsansouci / bsb-native

Build system for OCaml/Reason
Other
245 stars 10 forks source link

Add -bs-D BSB_BACKEND to bsc call #31

Closed Schmavery closed 6 years ago

Schmavery commented 6 years ago

This allows you to do things like this!

#if BSB_BACKEND = "native" then
  print_endline "Hello native"
#elif BSB_BACKEND = "bytecode" then
  print_endline "Hello bytecode"
#elif BSB_BACKEND = "js" then
  print_endline "Hello js"
#end