Skip to content

Commit

Permalink
clang-18 も試してみる
Browse files Browse the repository at this point in the history
  • Loading branch information
enm10k committed Jan 17, 2024
1 parent 37b7950 commit 8f2c34a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ jobs:
if: matrix.name == 'ubuntu-20.04_x86_64' || matrix.name == 'ubuntu-22.04_x86_64'
run: |
source VERSION
# clang-17 と CUDA を入れる
# clang-18 と CUDA を入れる
sudo apt-get update
sudo apt-get install -y software-properties-common
Expand Down
16 changes: 8 additions & 8 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -1406,8 +1406,8 @@ def install_deps(platform: Platform, source_dir, build_dir, install_dir, debug,
install_vpl_args['cmake_args'].append(f"-DCMAKE_CXX_FLAGS={' '.join(cxxflags)}")
if platform.target.os == 'ubuntu':
cmake_args = []
cmake_args.append("-DCMAKE_C_COMPILER=clang-17")
cmake_args.append("-DCMAKE_CXX_COMPILER=clang++-17")
cmake_args.append("-DCMAKE_C_COMPILER=clang-18")
cmake_args.append("-DCMAKE_CXX_COMPILER=clang++-18")
path = cmake_path(os.path.join(webrtc_info.libcxx_dir, 'include'))
cmake_args.append(f"-DCMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES={path}")
flags = [
Expand Down Expand Up @@ -1485,8 +1485,8 @@ def install_deps(platform: Platform, source_dir, build_dir, install_dir, debug,
cmake_args.append(f'-DCMAKE_SYSROOT={sysroot}')
if platform.target.os == 'ubuntu':
if platform.target.package_name in ('ubuntu-20.04_x86_64', 'ubuntu-22.04_x86_64'):
cmake_args.append("-DCMAKE_C_COMPILER=clang-17")
cmake_args.append("-DCMAKE_CXX_COMPILER=clang++-17")
cmake_args.append("-DCMAKE_C_COMPILER=clang-18")
cmake_args.append("-DCMAKE_CXX_COMPILER=clang++-18")
else:
cmake_args.append(
f"-DCMAKE_C_COMPILER={cmake_path(os.path.join(webrtc_info.clang_dir, 'bin', 'clang'))}")
Expand Down Expand Up @@ -1643,8 +1643,8 @@ def main():
cmake_args.append(f'-DCMAKE_SYSTEM_VERSION={WINDOWS_SDK_VERSION}')
if platform.target.os == 'ubuntu':
if platform.target.package_name in ('ubuntu-20.04_x86_64', 'ubuntu-22.04_x86_64'):
cmake_args.append("-DCMAKE_C_COMPILER=clang-17")
cmake_args.append("-DCMAKE_CXX_COMPILER=clang++-17")
cmake_args.append("-DCMAKE_C_COMPILER=clang-18")
cmake_args.append("-DCMAKE_CXX_COMPILER=clang++-18")
else:
cmake_args.append(
f"-DCMAKE_C_COMPILER={cmake_path(os.path.join(webrtc_info.clang_dir, 'bin', 'clang'))}")
Expand Down Expand Up @@ -1805,8 +1805,8 @@ def main():
cmake_args.append(f'-DCMAKE_SYSROOT={sysroot}')
if platform.target.os == 'ubuntu':
if platform.target.package_name in ('ubuntu-20.04_x86_64', 'ubuntu-22.04_x86_64'):
cmake_args.append("-DCMAKE_C_COMPILER=clang-17")
cmake_args.append("-DCMAKE_CXX_COMPILER=clang++-17")
cmake_args.append("-DCMAKE_C_COMPILER=clang-18")
cmake_args.append("-DCMAKE_CXX_COMPILER=clang++-18")
else:
cmake_args.append(
f"-DCMAKE_C_COMPILER={cmake_path(os.path.join(webrtc_info.clang_dir, 'bin', 'clang'))}")
Expand Down

0 comments on commit 8f2c34a

Please sign in to comment.