-
Notifications
You must be signed in to change notification settings - Fork 34
Support standalone builds of the offload test suite #1376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
75f4907
7b05b4b
c6be26c
b04f459
beea8d8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # Including the native target is important because some of LLVM's tests fail if | ||
| # you don't. | ||
| set(LLVM_TARGETS_TO_BUILD "Native;SPIRV" CACHE STRING "") | ||
|
|
||
| # Include the DirectX target for DXIL code generation. | ||
| set(LLVM_EXPERIMENTAL_TARGETS_TO_BUILD "DirectX" CACHE STRING "") | ||
|
|
||
| set(LLVM_ENABLE_PROJECTS "clang;clang-tools-extra" CACHE STRING "") | ||
|
|
||
| set(CLANG_ENABLE_HLSL On CACHE BOOL "") | ||
|
|
||
| set(LLVM_INSTALL_UTILS ON CACHE BOOL "") | ||
| set(LLVM_INSTALL_TOOLCHAIN_ONLY OFF CACHE BOOL "") | ||
| set(LLVM_DISTRIBUTION_COMPONENTS | ||
| clang | ||
| hlsl-resource-headers | ||
| FileCheck | ||
| split-file | ||
| obj2yaml | ||
| not | ||
| llvm-headers | ||
| LLVMSupport | ||
| LLVMDemangle # Dependency of LLVMSupport | ||
| LLVMObject | ||
| # Dependencies of LLVMObject | ||
| LLVMBitReader | ||
| LLVMBitstreamReader # Dependency of LLVMBitReader | ||
| LLVMCore | ||
| LLVMRemarks # Dependency of LLVMCore | ||
| LLVMMC | ||
| LLVMDebugInfoDWARFLowLevel # Dependency of LLVMMC | ||
| LLVMIRReader | ||
| LLVMAsmParser # Dependency of LLVMIRReader | ||
| LLVMBinaryFormat | ||
| LLVMMCParser | ||
| LLVMTargetParser | ||
| LLVMTextAPI | ||
| cmake-exports | ||
| CACHE STRING "") |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # Including the native target is important because some of LLVM's tests fail if | ||
| # you don't. | ||
| set(LLVM_TARGETS_TO_BUILD "Native;SPIRV" CACHE STRING "") | ||
|
|
||
| # Include the DirectX target for DXIL code generation. | ||
| set(LLVM_EXPERIMENTAL_TARGETS_TO_BUILD "DirectX" CACHE STRING "") | ||
|
|
||
| set(LLVM_ENABLE_PROJECTS "clang;clang-tools-extra" CACHE STRING "") | ||
|
|
||
| set(CLANG_ENABLE_HLSL On CACHE BOOL "") | ||
|
|
||
| set(LLVM_INSTALL_UTILS ON CACHE BOOL "") | ||
| set(LLVM_INSTALL_TOOLCHAIN_ONLY OFF CACHE BOOL "") | ||
| set(LLVM_DISTRIBUTION_COMPONENTS | ||
| clang | ||
| hlsl-resource-headers | ||
| FileCheck | ||
| split-file | ||
| obj2yaml | ||
| not | ||
| llvm-headers | ||
| LLVMSupport | ||
| LLVMDemangle # Dependency of LLVMSupport | ||
| LLVMObject | ||
| # Dependencies of LLVMObject | ||
| LLVMBitReader | ||
| LLVMBitstreamReader # Dependency of LLVMBitReader | ||
| LLVMCore | ||
| LLVMRemarks # Dependency of LLVMCore | ||
| LLVMMC | ||
| LLVMDebugInfoDWARFLowLevel # Dependency of LLVMMC | ||
| LLVMIRReader | ||
| LLVMAsmParser # Dependency of LLVMIRReader | ||
| LLVMBinaryFormat | ||
| LLVMMCParser | ||
| LLVMTargetParser | ||
| LLVMTextAPI | ||
| cmake-exports | ||
| CACHE STRING "") |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -67,7 +67,7 @@ list(APPEND OFFLOADTEST_DEPS | |
| obj2yaml | ||
| not) | ||
|
|
||
| if (OFFLOADTEST_TEST_CLANG) | ||
| if (OFFLOADTEST_TEST_CLANG AND NOT OFFLOADTEST_BUILT_STANDALONE) | ||
| list(APPEND OFFLOADTEST_DEPS clang) | ||
| endif() | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I should note that the reason I made this conditional even though it doesn't strictly need to be (because of exported targets being wonderful) is because I wanted to break the connection between |
||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add an if guard to verify that this main_src variable is set correctly?