Skip to content

Commit 6a6bae0

Browse files
committed
Fix issue with -O2 not being used during compilation
1 parent 6019821 commit 6a6bae0

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## Unlreleased
44

5+
## v0.13.2 - 2023-01-26
6+
- fixed: `-O2` flag was not being set when compiling binaries in non windows environment.
7+
58
## v0.13.1 - 2023-01-26
69
- added: `SQLITE_ENABLE_DBSTAT_VTAB=1`.
710
- changed: Allow `EXQLITE_SYSTEM_CFLAGS` to be appended to the `CFLAGS` regardless.

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
SRC = c_src/sqlite3_nif.c
2222
HEADERS = c_src/utf8.h
2323

24+
CFLAGS = -I"$(ERTS_INCLUDE_DIR)"
25+
2426
ifeq ($(EXQLITE_USE_SYSTEM),)
2527
SRC += c_src/sqlite3.c
2628
HEADERS += c_src/sqlite3.h c_src/sqlite3ext.h
@@ -35,13 +37,11 @@ else
3537
endif
3638
endif
3739

38-
CFLAGS ?= -O2 -Wall
3940
ifneq ($(DEBUG),)
4041
CFLAGS += -g
4142
else
42-
CFLAGS += -DNDEBUG=1
43+
CFLAGS += -DNDEBUG=1 -O2
4344
endif
44-
CFLAGS += -I"$(ERTS_INCLUDE_DIR)"
4545

4646
KERNEL_NAME := $(shell uname -s)
4747

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Package: https://hex.pm/packages/exqlite
3434
```elixir
3535
defp deps do
3636
[
37-
{:exqlite, "~> 0.13.1"}
37+
{:exqlite, "~> 0.13.2"}
3838
]
3939
end
4040
```

mix.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule Exqlite.MixProject do
22
use Mix.Project
33

4-
@version "0.13.1"
4+
@version "0.13.2"
55
@sqlite_version "3.40.1"
66

77
def project do

0 commit comments

Comments
 (0)