-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-4340: [C++][CI] Build IWYU for LLVM 7 in iwyu docker-compose job
Following the instructions in docker-compose.yml gives me a working IWYU build now ``` export PYTHON_VERSION=3.6 docker-compose build cpp docker-compose build python docker-compose build lint docker-compose run iwyu ``` Author: François Saint-Jacques <[email protected]> Author: Wes McKinney <[email protected]> Closes #3643 from wesm/ARROW-4340 and squashes the following commits: 56733fc <François Saint-Jacques> Refactor iwyu build into docker install script. (#8) e1c46c7 <Wes McKinney> Build IWYU for LLVM 7 in iwyu docker-compose job
- Loading branch information
1 parent
69d595a
commit 2571b03
Showing
4 changed files
with
48 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You 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 -eu | ||
|
||
: ${IWYU_REPO:="https://github.com/include-what-you-use/include-what-you-use.git"} | ||
: ${IWYU_BRANCH:="clang_7.0"} | ||
: ${IWYU_SRC:="/tmp/iwyu"} | ||
: ${IWYU_HOME:="/opt/iwyu"} | ||
|
||
git clone "${IWYU_REPO}" "${IWYU_SRC}" | ||
git -C "${IWYU_SRC}" checkout ${IWYU_BRANCH} | ||
|
||
mkdir -p "${IWYU_HOME}" | ||
pushd "${IWYU_HOME}" | ||
|
||
# Build IWYU for current Clang | ||
export CC=clang-7 | ||
export CXX=clang++-7 | ||
|
||
cmake -DCMAKE_PREFIX_PATH=/usr/lib/llvm-7 "${IWYU_SRC}" | ||
make -j4 | ||
|
||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters