Skip to content

Commit 1573de7

Browse files
committed
Document how to pass additional compiler and linker flags
1 parent 58c76c7 commit 1573de7

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,14 @@ To build a statically linked executable pass `-DSTATIC_LINKING=ON` when invoking
8989
cmake -DSTATIC_LINKING=ON ..
9090
```
9191

92+
Additional compiler and linker flags may be passed as environment variable sor their CMake
93+
equivalent, e.g. to compile with debug symbols the following are the same:
94+
95+
```sh
96+
cmake -DCMAKE_CXX_FLAGS=-g ..
97+
CXXFLAGS=-g cmake ..
98+
```
99+
92100
### Building with `docker-compose`
93101

94102
Alternatively, you can use [docker-compose] to build and test the program:

bindgen/Main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <clang/Tooling/CommonOptionsParser.h>
44

55
int main(int argc, const char *argv[]) {
6-
llvm::cl::OptionCategory Category("Binding Generator");
6+
llvm::cl::OptionCategory Category("Scala Native Binding Generator");
77
llvm::cl::extrahelp CommonHelp(
88
clang::tooling::CommonOptionsParser::HelpMessage);
99
llvm::cl::extrahelp MoreHelp("\nProduce Bindings for scala native. Please "

0 commit comments

Comments
 (0)