CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
54 lines
2.8 KiB
C
54 lines
2.8 KiB
C
// RUN: rm -rf %t
|
|
// RUN: split-file %s %t
|
|
|
|
// RUN: touch %t/session.timestamp
|
|
// RUN: %clang -fmodules -fimplicit-module-maps -fsyntax-only %t/tu1.c \
|
|
// RUN: -fmodules-cache-path=%t/cache -F%t/preferred_frameworks -F%t/fallback_frameworks \
|
|
// RUN: -fbuild-session-file=%t/session.timestamp -fmodules-validate-once-per-build-session \
|
|
// RUN: -Rmodule-validation 2>&1 | FileCheck %s --check-prefix=NO_RELOC
|
|
|
|
// NO_RELOC-NOT: checking if module {{.*}} has relocated
|
|
|
|
// RUN: mkdir %t/preferred_frameworks/
|
|
// RUN: cp -r %t/fallback_frameworks/IndirectDep.framework %t/preferred_frameworks/
|
|
|
|
// Verify no relocation checks happen because pcms are newer than timestamp.
|
|
// RUN: %clang -fmodules -fimplicit-module-maps -fsyntax-only %t/tu1.c \
|
|
// RUN: -fmodules-cache-path=%t/cache -F%t/preferred_frameworks -F%t/fallback_frameworks \
|
|
// RUN: -fbuild-session-file=%t/session.timestamp -fmodules-validate-once-per-build-session \
|
|
// RUN: -Rmodule-validation 2>&1 | FileCheck %s --check-prefix=NO_RELOC
|
|
|
|
// Verify no relocation checks happen even when the build session is new because it is explicitly
|
|
// disabled.
|
|
// RUN: touch %t/session.timestamp
|
|
// RUN: %clang -fmodules -fimplicit-module-maps -fsyntax-only %t/tu1.c \
|
|
// RUN: -fmodules-cache-path=%t/cache -F%t/preferred_frameworks -F%t/fallback_frameworks \
|
|
// RUN: -fbuild-session-file=%t/session.timestamp -fmodules-validate-once-per-build-session \
|
|
// RUN: -Xclang -fno-modules-check-relocated -Rmodule-validation 2>&1 | FileCheck %s --check-prefix=NO_RELOC
|
|
|
|
// Force session.timestamp into the future so it is strictly greater than any
|
|
// cached pcm or timestamp mtime, regardless of wall-clock resolution.
|
|
// RUN: %python -c "import os, time; t = time.time() + 3600; os.utime('%/t/session.timestamp', (t, t))"
|
|
// RUN: %clang -fmodules -fimplicit-module-maps -fsyntax-only %t/tu1.c \
|
|
// RUN: -fmodules-cache-path=%t/cache -F%t/preferred_frameworks -F%t/fallback_frameworks \
|
|
// RUN: -fbuild-session-file=%t/session.timestamp -fmodules-validate-once-per-build-session \
|
|
// RUN: -Rmodule-validation 2>&1 | FileCheck %s --check-prefix=RELOC
|
|
|
|
// NO_RELOC-NOT: checking if module {{.*}} has relocated
|
|
|
|
// RELOC: checking if module {{.*}} has relocated
|
|
// RELOC: module 'IndirectDep' relocated from {{.*}}fallback_frameworks{{.*}} to {{.*}}preferred_frameworks
|
|
|
|
//--- fallback_frameworks/DirectDep.framework/Modules/module.modulemap
|
|
framework module DirectDep { header "DirectDep.h" }
|
|
//--- fallback_frameworks/DirectDep.framework/Headers/DirectDep.h
|
|
#include <IndirectDep/IndirectDep.h>
|
|
|
|
//--- fallback_frameworks/IndirectDep.framework/Modules/module.modulemap
|
|
framework module IndirectDep { header "IndirectDep.h" }
|
|
//--- fallback_frameworks/IndirectDep.framework/Headers/IndirectDep.h
|
|
int foo(void);
|
|
|
|
//--- tu1.c
|
|
#include <DirectDep/DirectDep.h>
|