File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,24 @@ cd target
25
25
cmake ..
26
26
make
27
27
./scalaBindgen /usr/include/ctype.h -name ctype --
28
+ ```
29
+
30
+ Alternatively, you can use [ docker-compose] to build and test the program:
31
+
32
+ ``` sh
33
+ # Build the docker image with LLVM version 6.0.
34
+ docker-compose build ubuntu-18.04-llvm-6.0
35
+ # Build the bindgen tool and run the tests.
36
+ docker-compose run --rm ubuntu-18.04-llvm-6.0
37
+ # Run the bindgen tool inside the container.
38
+ docker-compose run --rm ubuntu-18.04-llvm-6.0 target/scalaBindgen -name union tests/samples/Union.h --
28
39
```
29
40
30
41
[ CMake ] : https://cmake.org/
31
42
[ LLVM ] : https://llvm.org/
32
43
[ Clang ] : https://clang.llvm.org/
33
44
[ Scala Native setup guide ] : http://www.scala-native.org/en/latest/user/setup.html
45
+ [ docker-compose ] : https://docs.docker.com/compose/
34
46
35
47
## Testing
36
48
You can’t perform that action at this time.
0 commit comments