Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- when not defined(cpp):
- {.error: "Hello requires that you compile in cpp mode".}
- {.passC: "-std=gnu++17".}
- when defined(gcc):
- const cc = "gcc"
- elif defined(clang):
- const cc = "clang"
- staticExec cc & "-c additionalfile.cpp --flags "
- {.emit: """
- #include "uWebSockets/src/App.h"
- """.}
- echo "Hello World"
- # nim cpp --gc:arc --newruntime --usemalloc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement