From d9324133b3edc26d76f0f9ba423711688514d68c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Thu, 28 Jan 2021 10:35:55 +0100 Subject: [PATCH] Use headers from amalagamation on darwin instead of system one --- rebar.config | 1 + 1 file changed, 1 insertion(+) diff --git a/rebar.config b/rebar.config index 2120aaa..75bb724 100644 --- a/rebar.config +++ b/rebar.config @@ -4,6 +4,7 @@ {port_env, [{"DRV_CFLAGS", "$DRV_CFLAGS -Wall -Wextra -Wno-unused-parameter -Wstrict-prototypes"}, {"^((?!darwin|win32).)*$", "DRV_LDFLAGS", "$DRV_LDFLAGS -lsqlite3"}, {"ERL_LDFLAGS", " -L$ERL_EI_LIBDIR -lei"}, + {"darwin", "DRV_CFLAGS", "$DRV_CFLAGS -Isqlite3_amalgamation"}, {".*win32.*", "DRV_CFLAGS", "$DRV_CFLAGS /O2 /Isqlite3_amalgamation /Ic_src /W4 /wd4100 /wd4204 /wd4820 /wd4255 /wd4668 /wd4710 /wd4711"}, {".*win32.*", "DRV_LDFLAGS", "$DRV_LDFLAGS sqlite3.lib"}]}. {cover_enabled, true}.