summaryrefslogtreecommitdiffstats
path: root/src/fluent-bit/lib/luajit-cmake/readme.md
blob: c64c3ee166ab95f22cb93841de269065c565bcd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# luajit-cmake

A flexible cmake builder for LuaJIT. Forked from
https://github.com/WohlSoft/LuaJIT and update.

## Build

### make 

Use a GNU compatible make.

`make -DLUAJIT_DIR=...` or `mingw32-make -DLUAJIT_DIR=...` or `gnumake -DLUAJIT_DIR=...`.

_Note_: When use mingw32-make, please change `\\` to `/` in file path on Windows.

### cmake

Use cmake to compile.

```
cmake -H. -Bbuild -DLUAJIT_DIR=...
make --build build --config Release
```

### CrossCompile

#### iOS

```
make iOS
```

#### Android

```
make Android
```

#### Windows

```
make Windows
```

#### Note

_Note_: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS). So I use mingw-w64 and wine to build and run 32 bits minilua and buildvm.