1 Star 0 Fork 1

Speiling/jiffy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
rebar.config 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
Paul J. Davis 提交于 2020-02-04 14:53 . Only use -flto when supported
{port_specs, [
{"priv/jiffy.so", [
"c_src/*.c",
"c_src/*.cc",
"c_src/double-conversion/*.cc"
]}
]}.
{port_env, [
{".*", "FLTO_FLAG", ""},
{"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)",
"CFLAGS", "$CFLAGS -Ic_src/ -g -Wall $FLTO_FLAG -Werror -O3"},
{"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)",
"CXXFLAGS", "$CXXFLAGS -Ic_src/ -g -Wall $FLTO_FLAG -Werror -O3"},
{"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)",
"LDFLAGS", "$LDFLAGS $FLTO_FLAG -lstdc++"},
%% OS X Leopard flags for 64-bit
{"darwin9.*-64$", "CXXFLAGS", "-m64"},
{"darwin9.*-64$", "LDFLAGS", "-arch x86_64"},
%% OS X Snow Leopard flags for 32-bit
{"darwin10.*-32$", "CXXFLAGS", "-m32"},
{"darwin10.*-32$", "LDFLAGS", "-arch i386"},
{"win32", "CXXFLAGS", "$CXXFLAGS /O2 /DNDEBUG"}
]}.
{erl_opts, [
{platform_define, "R1(1|2|3|4|5|6)", 'JIFFY_NO_MAPS'}
]}.
{eunit_opts, [
verbose
]}.
{pre_hooks, [{"", compile, "escript enc compile"}]}.
{post_hooks, [{"", clean, "escript enc clean"}]}.
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/Speiling/jiffy.git
git@gitee.com:Speiling/jiffy.git
Speiling
jiffy
jiffy
master

搜索帮助