3 Star 1 Fork 0

Gitee 极速下载 / orlydb

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/cmaloney/orly
克隆/下载
bootstrap.sh 3.08 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
#
# Copyright 2010-2014 OrlyAtomics, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set -e
CC=g++
common_flags=(
-O3 -DNDEBUG -flto
-std=c++1y
-Wall -Werror -Wextra -Wold-style-cast
-Wno-unused -Wno-unused-parameter -Wno-unused-result
-Wl,--hash-style=gnu -Wl,--no-copy-dt-needed-entries -Wl,-z,relro -Wl,--no-as-needed
)
#Build JHM
$CC -o tools/jhm \
"${common_flags[@]}" \
jhm/jobs/util.cc jhm/job.cc base/slice.cc jhm/test.cc jhm/jobs/flex.cc server/daemonize.cc \
io/input_consumer.cc io/output_consumer.cc base/thrower.cc strm/bin/in.cc jhm/naming.cc jhm/jhm.cc \
io/output_producer.cc io/chunk_and_pool.cc base/pos.cc base/code_location.cc util/string.cc base/cmd.cc \
base/demangle.cc base/piece.cc jhm/job_runner.cc base/subprocess.cc util/path.cc strm/bin/var_int.cc \
jhm/env.cc jhm/jobs/compile_c_family.cc util/error.cc jhm/status_line.cc io/input_producer.cc \
jhm/work_finder.cc base/fd.cc base/pump.cc util/io.cc base/split.cc jhm/config.cc jhm/jobs/link.cc \
jhm/jobs/bison.cc strm/syntax_error.cc jhm/jobs/nycr.cc base/dir_walker.cc jhm/jobs/dep.cc util/time.cc \
strm/out.cc base/event_semaphore.cc strm/in.cc strm/past_end.cc base/unreachable.cc base/path.cc base/backtrace.cc \
-I./ -DSRC_ROOT=\"`pwd`\" \
-msse2 -pthread
#Build make_dep_file
$CC -o tools/make_dep_file \
"${common_flags[@]}" \
strm/bin/var_int.cc strm/syntax_error.cc strm/out.cc strm/past_end.cc strm/in.cc strm/bin/in.cc \
util/io.cc base/demangle.cc base/code_location.cc base/event_semaphore.cc util/error.cc base/unreachable.cc \
jhm/make_dep_file.cc base/thrower.cc base/fd.cc base/split.cc base/subprocess.cc base/pump.cc base/backtrace.cc \
server/daemonize.cc \
-I./ -DSRC_ROOT=\"`pwd`\" \
-msse2 -pthread
mkdir -p ../.jhm
#Build nycr
./tools/jhm -c bootstrap
C
1
https://gitee.com/mirrors/orlydb.git
git@gitee.com:mirrors/orlydb.git
mirrors
orlydb
orlydb
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891