Skip to content

Allow external LLVM and Clang folders.#374

Merged
alan-baker merged 1 commit intogoogle:masterfrom
dj2:build
May 29, 2019
Merged

Allow external LLVM and Clang folders.#374
alan-baker merged 1 commit intogoogle:masterfrom
dj2:build

Conversation

@dj2
Copy link
Contributor

@dj2 dj2 commented May 29, 2019

This CL updates the build files to allow setting the
CLSPV_LLVM_SOURCE_DIR and CLSPV_CLANG_SOURCE_DIR without specifying an
EXTERNAL_LLVM.

Because those directories maybe outside the clspv/ source tree we have
to provide the build directory when calling add_subdirectory.

This CL updates the build files to allow setting the
CLSPV_LLVM_SOURCE_DIR and CLSPV_CLANG_SOURCE_DIR without specifying an
EXTERNAL_LLVM.

Because those directories maybe outside the clspv/ source tree we have
to provide the build directory when calling add_subdirectory.


# Then pull in LLVM for building.
add_subdirectory(${CLSPV_LLVM_SOURCE_DIR} EXCLUDE_FROM_ALL)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this necessary? It seems strange to add a directory in the build tree.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my case I checkout third_party/clspv, third_party/clspv-llvm and third_party/clspv-clang. You can't add a subdirectory which is outside your subtree without providing the build directory. So, to keep things the same I set the build directory to what it would have been if it was in-subtree.

@alan-baker alan-baker merged commit 05c145e into google:master May 29, 2019
@dj2 dj2 deleted the build branch May 29, 2019 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants