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
61 lines
2.8 KiB
C
61 lines
2.8 KiB
C
// This test checks that module cache populated using different spellings of the
|
|
// same underlying directory works consistently (specifically the IMPORT records.)
|
|
|
|
// RUN: rm -rf %t
|
|
// RUN: split-file %s %t
|
|
// RUN: mkdir %t/tmp
|
|
|
|
// Module cache path absolute.
|
|
// RUN: cd %t/tmp && %clang_cc1 -fmodules -fimplicit-module-maps -fsyntax-only -I %t %t/tu1.c -Rmodule-build -Rmodule-import -verify -fmodules-cache-path=%t/cache
|
|
//--- tu1.c
|
|
#include "b.h" // expected-remark{{building module 'b'}} \
|
|
// expected-remark{{finished building module 'b'}} \
|
|
// expected-remark{{importing module 'b'}} \
|
|
// expected-remark{{importing module 'a' into 'b'}}
|
|
|
|
// Module cache path relative to CWD.
|
|
// RUN: cd %t && %clang_cc1 -fmodules -fimplicit-module-maps -fsyntax-only -I %t %t/tu2.c -Rmodule-build -Rmodule-import -verify -fmodules-cache-path=cache
|
|
//--- tu2.c
|
|
#include "c.h" // expected-remark{{building module 'c'}} \
|
|
// expected-remark{{finished building module 'c'}} \
|
|
// expected-remark{{importing module 'c'}} \
|
|
// expected-remark{{importing module 'b' into 'c'}} \
|
|
// expected-remark{{importing module 'a' into 'b'}}
|
|
|
|
// Module cache path relative to -working-directory.
|
|
// RUN: cd %t/tmp && %clang_cc1 -fmodules -fimplicit-module-maps -fsyntax-only -I %t %t/tu3.c -Rmodule-build -Rmodule-import -verify -fmodules-cache-path=cache -working-directory %t
|
|
//--- tu3.c
|
|
#include "d.h" // expected-remark{{building module 'd'}} \
|
|
// expected-remark{{finished building module 'd'}} \
|
|
// expected-remark{{importing module 'd'}} \
|
|
// expected-remark{{importing module 'c' into 'd'}} \
|
|
// expected-remark{{importing module 'b' into 'c'}} \
|
|
// expected-remark{{importing module 'a' into 'b'}}
|
|
|
|
// Module cache path absolute again.
|
|
// RUN: cd %t/tmp && %clang_cc1 -fmodules -fimplicit-module-maps -fsyntax-only -I %t %t/tu4.c -Rmodule-build -Rmodule-import -verify -fmodules-cache-path=%t/cache
|
|
//--- tu4.c
|
|
#include "e.h" // expected-remark{{building module 'e'}} \
|
|
// expected-remark{{finished building module 'e'}} \
|
|
// expected-remark{{importing module 'e'}} \
|
|
// expected-remark{{importing module 'd' into 'e'}} \
|
|
// expected-remark{{importing module 'c' into 'd'}} \
|
|
// expected-remark{{importing module 'b' into 'c'}} \
|
|
// expected-remark{{importing module 'a' into 'b'}}
|
|
|
|
//--- module.modulemap
|
|
module a { header "a.h" }
|
|
module b { header "b.h" }
|
|
module c { header "c.h" }
|
|
module d { header "d.h" }
|
|
module e { header "e.h" }
|
|
//--- a.h
|
|
//--- b.h
|
|
#include "a.h"
|
|
//--- c.h
|
|
#include "b.h"
|
|
//--- d.h
|
|
#include "c.h"
|
|
//--- e.h
|
|
#include "d.h"
|