Repository navigation
Conversation
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
1 similar comment
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
ScottTodd
left a comment
There was a problem hiding this comment.
Thanks! Changes generally look good.
Please sign the Contributor License Agreement (see the comment from googlebot).
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| add_executable(generate_cc_embed_data) |
There was a problem hiding this comment.
I could see us wrapping the CMake add_executable in some sort of external_cc_binary util located here: https://github.com/google/iree/tree/master/build_tools/cmake. In general, we want the CMake files to closely match Bazel BUILD files in structure, so we can make mechanical changes (by hand or with a script) to synchronize them.
Maybe I could do the same thing with third_party/dear_imgui : https://github.com/google/iree/blob/0d41620fbe415d5fa3b492a804653c9dea9b8fd5/build_tools/third_party/dear_imgui/CMakeLists.txt#L81-L93
No action needed in this pull request, just making an observation.
I will sign the CLA asap. However, I thought it might be a good idea to already start the review process on the PR. |
Thanks to Scott Todd, see issue #149
|
Awesome, thanks for all the patches! With these all in, are you able to build the compiler portion with cmake? Wondering if I can set -DIREE_BUILD_COMPILER=ON on the CI? |
|
@GMNGeoffrey |
|
@googlebot I signed it! |
|
@googlebot Rescan |
|
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
1 similar comment
|
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
This PR complements #160. I implemented the generation of *emod*, *h* and *cc* files, by using `add_custom_command` to call `iree-translate` and `generate_cc_embed_data`. At the moment, the `iree_translate` target to build the `iree-translate` executable still fails. For testing puposes, I added `#file(COPY "${CMAKE_SOURCE_DIR}/iree/tools/iree-translate" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")` to `iree/tools/CMakeLists.txt` and replaced `COMMAND iree-translate` by `COMMAND "${CMAKE_BINARY_DIR}/iree/tools/iree-translate"`. This allowed me to verify that the additions to the CMakeLists.txt work as expected, using the `iree-translate` executable build with Bazel. Prior to (maybe) merging this, I would like to discuss if a *raw* `add_custom_command` is the way to go or, taking comment #160 (comment) into account, if wrapping, e.g. in a CMake function, would be preferable. Closes #161 COPYBARA_INTEGRATE_REVIEW=#161 from marbre:cmake-2 082acb9 PiperOrigin-RevId: 284782756
This PR depends on #160, which implements building `generate_cc_embed_data`. The PR does not implement `iree_glsl_cc_library`, but I think that can be refactored after getting the complete compiler or samples target working. Closes #164 COPYBARA_INTEGRATE_REVIEW=#164 from marbre:cmake-3 3705c9e PiperOrigin-RevId: 284875458
First changes to solve issue #90. This further closes #149.