Advertisement
Guest User

Untitled

a guest
Apr 8th, 2020
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. when not defined(cpp):
  2. {.error: "Hello requires that you compile in cpp mode".}
  3.  
  4. {.passC: "-std=gnu++17".}
  5.  
  6. when defined(gcc):
  7. const cc = "gcc"
  8. elif defined(clang):
  9. const cc = "clang"
  10.  
  11. staticExec cc & "-c additionalfile.cpp --flags "
  12.  
  13. {.emit: """
  14.  
  15. #include "uWebSockets/src/App.h"
  16.  
  17.  
  18. """.}
  19.  
  20.  
  21. echo "Hello World"
  22.  
  23. # nim cpp --gc:arc --newruntime --usemalloc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement