Skip to content

Commit c430393

Browse files
committed
chore(scripts): add compile scripts in ubuntu and macos
1 parent eab0fa5 commit c430393

3 files changed

Lines changed: 52 additions & 0 deletions

File tree

cpp/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44

55
apidoc/html
66
apidoc/xml
7+
*.log

cpp/build_macos.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
# Change this line to your arrow and parquet include path
19+
export CPATH="/opt/homebrew/include:$CPATH"
20+
21+
cmake -S . -B build_macos \
22+
-DBUILD_BENCHMARKS=ON \
23+
-DCMAKE_BUILD_TYPE=Debug \
24+
-DBUILD_TESTS=ON \
25+
-DBUILD_EXAMPLES=ON
26+
27+
cmake --build build_macos -j8 2>&1 | tee build_macos.log

cpp/build_ubuntu.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
cmake -S . -B build_ubuntu \
19+
-DBUILD_BENCHMARKS=ON \
20+
-DCMAKE_BUILD_TYPE=Debug \
21+
-DBUILD_TESTS=ON \
22+
-DBUILD_EXAMPLES=ON
23+
24+
cmake --build build_ubuntu -j8 2>&1 | tee build_ubuntu.log

0 commit comments

Comments
 (0)