Skip to content

Commit

Permalink
Rename CLANG_17 to COBALT_CLANG
Browse files Browse the repository at this point in the history
Change-Id: I1038f7d435660ad39036b177f375ed3d9529562b
  • Loading branch information
niranjanyardi committed Mar 25, 2024
1 parent ad625b0 commit 2646ab9
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 28 deletions.
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ x-shared-unittest-definitions: &shared-unittest-definitions
dockerfile: unittest/Dockerfile
args:
- CLANG_VER=${CLANG_VER:-365097-f7e52fbd-8}
- CLANG_17_VER=${CLANG_17_VER:-17-init-8029-g27f27d15-3}
- COBALT_CLANG_VER=${COBALT_CLANG_VER:-17-init-8029-g27f27d15-3}
image: cobalt-linux-x64x11-unittest
environment:
- PLATFORM=${PLATFORM:-linux-x64x11}
Expand Down Expand Up @@ -112,7 +112,7 @@ services:
args:
# Should match version pinned by Starboard
- CLANG_VER=${CLANG_VER:-365097-f7e52fbd-8}
- CLANG_17_VER=${CLANG_17_VER:-17-init-8029-g27f27d15-3}
- COBALT_CLANG_VER=${COBALT_CLANG_VER:-17-init-8029-g27f27d15-3}
image: cobalt-build-base
depends_on:
- base
Expand All @@ -125,7 +125,7 @@ services:
args:
- FROM_IMAGE=base-bionic
- CLANG_VER=${CLANG_VER:-365097-f7e52fbd-8}
- CLANG_17_VER=${CLANG_17_VER:-17-init-8029-g27f27d15-3}
- COBALT_CLANG_VER=${COBALT_CLANG_VER:-17-init-8029-g27f27d15-3}
image: build-base-bionic
depends_on:
- base-bionic
Expand Down
18 changes: 9 additions & 9 deletions docker/linux/base/build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,19 @@ RUN cd /tmp \
&& echo ${CLANG_VER} >> ${TC_HOME}/cr_build_revision \
&& rm clang-${CLANG_VER}.tgz

# === Install Clang 16 toolchain for all Linux-hosted builds
ARG CLANG_17_VER
# === Install Clang toolchain for all Linux-hosted builds
ARG COBALT_CLANG_VER

ARG CLANG_17_TC_HOME=${TC_ROOT}/x86_64-linux-gnu-clang-chromium-${CLANG_17_VER}
ARG CLANG_17_BASE_URL=https://commondatastorage.googleapis.com/chromium-browser-clang
ARG COBALT_CLANG_TC_HOME=${TC_ROOT}/x86_64-linux-gnu-clang-chromium-${COBALT_CLANG_VER}
ARG COBALT_CLANG_BASE_URL=https://commondatastorage.googleapis.com/chromium-browser-clang

RUN cd /tmp \
&& mkdir -p ${CLANG_17_TC_HOME} \
&& mkdir -p ${COBALT_CLANG_TC_HOME} \
&& curl --silent -O -J \
${CLANG_17_BASE_URL}/Linux_x64/clang-llvmorg-${CLANG_17_VER}.tgz \
&& tar xf clang-llvmorg-${CLANG_17_VER}.tgz -C ${CLANG_17_TC_HOME} \
&& echo ${CLANG_17_VER} >> ${CLANG_17_TC_HOME}/cr_build_revision \
&& rm clang-llvmorg-${CLANG_17_VER}.tgz
${COBALT_CLANG_BASE_URL}/Linux_x64/clang-llvmorg-${COBALT_CLANG_VER}.tgz \
&& tar xf clang-llvmorg-${COBALT_CLANG_VER}.tgz -C ${COBALT_CLANG_TC_HOME} \
&& echo ${COBALT_CLANG_VER} >> ${COBALT_CLANG_TC_HOME}/cr_build_revision \
&& rm clang-llvmorg-${COBALT_CLANG_VER}.tgz

RUN git config --global --add safe.directory /code

Expand Down
30 changes: 15 additions & 15 deletions docker/linux/unittest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,28 +64,28 @@ RUN cd /tmp \
&& echo ${CLANG_VER} >> ${TC_HOME}/cr_build_revision \
&& rm clang-${CLANG_VER}.tgz

# === Install Clang 16 toolchain for llvm-symbolization.
ARG CLANG_17_VER
# === Install Clang toolchain for llvm-symbolization.
ARG COBALT_CLANG_VER

ARG CLANG_17_TC_HOME=${TC_ROOT}/x86_64-linux-gnu-clang-chromium-${CLANG_17_VER}
ARG CLANG_17_BASE_URL=https://commondatastorage.googleapis.com/chromium-browser-clang
ARG COBALT_CLANG_TC_HOME=${TC_ROOT}/x86_64-linux-gnu-clang-chromium-${COBALT_CLANG_VER}
ARG COBALT_CLANG_BASE_URL=https://commondatastorage.googleapis.com/chromium-browser-clang

RUN cd /tmp \
&& mkdir -p ${CLANG_17_TC_HOME} \
&& mkdir -p ${COBALT_CLANG_TC_HOME} \
&& curl --silent -O -J \
${CLANG_17_BASE_URL}/Linux_x64/clang-llvmorg-${CLANG_17_VER}.tgz \
&& tar xf clang-llvmorg-${CLANG_17_VER}.tgz -C ${CLANG_17_TC_HOME} \
&& echo ${CLANG_17_VER} >> ${CLANG_17_TC_HOME}/cr_build_revision \
&& rm clang-llvmorg-${CLANG_17_VER}.tgz
${COBALT_CLANG_BASE_URL}/Linux_x64/clang-llvmorg-${COBALT_CLANG_VER}.tgz \
&& tar xf clang-llvmorg-${COBALT_CLANG_VER}.tgz -C ${COBALT_CLANG_TC_HOME} \
&& echo ${COBALT_CLANG_VER} >> ${COBALT_CLANG_TC_HOME}/cr_build_revision \
&& rm clang-llvmorg-${COBALT_CLANG_VER}.tgz

# === Install Clang 16 toolchain coverage tools.
# === Install Clang toolchain coverage tools.
RUN cd /tmp \
&& mkdir -p ${CLANG_17_TC_HOME} \
&& mkdir -p ${COBALT_CLANG_TC_HOME} \
&& curl --silent -O -J \
${CLANG_17_BASE_URL}/Linux_x64/llvm-code-coverage-llvmorg-${CLANG_17_VER}.tgz \
&& tar xf llvm-code-coverage-llvmorg-${CLANG_17_VER}.tgz -C ${CLANG_17_TC_HOME} \
&& echo ${CLANG_17_VER} >> ${CLANG_17_TC_HOME}/cr_build_revision \
&& rm llvm-code-coverage-llvmorg-${CLANG_17_VER}.tgz
${COBALT_CLANG_BASE_URL}/Linux_x64/llvm-code-coverage-llvmorg-${COBALT_CLANG_VER}.tgz \
&& tar xf llvm-code-coverage-llvmorg-${COBALT_CLANG_VER}.tgz -C ${COBALT_CLANG_TC_HOME} \
&& echo ${COBALT_CLANG_VER} >> ${COBALT_CLANG_TC_HOME}/cr_build_revision \
&& rm llvm-code-coverage-llvmorg-${COBALT_CLANG_VER}.tgz

WORKDIR /out
# Sets the locale in the environment. This is needed for NPLB unit tests.
Expand Down
2 changes: 1 addition & 1 deletion starboard/linux/x64x11/sanitizer_options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ SANITIZER_HOOK_ATTRIBUTE const char* __lsan_default_suppressions() {
#if defined(ASAN_SYMBOLIZER_PATH)
extern "C" const char* __asan_default_options() {
// TODO(b/278247547) : Remove detect_stack_use_after_return=0 once the issue
// with AddressSanitizerFlags in Clang 16 is resolved.
// with AddressSanitizerFlags in Clang is resolved.
return "detect_stack_use_after_return=0:external_symbolizer_"
"path=" ASAN_SYMBOLIZER_PATH;
}
Expand Down

0 comments on commit 2646ab9

Please sign in to comment.