Skip to content

Conversation

anutosh491
Copy link
Collaborator

Description

Type of change

Please tick all options which are relevant.

  • Bug fix
  • New feature
  • Added/removed dependencies
  • Required documentation updates

@anutosh491
Copy link
Collaborator Author

I realized that some examples from the update lite notebook were not working as expected

image

Whereas we should see the image here

image

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.72%. Comparing base (0a9e71e) to head (5cb09ea).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #231   +/-   ##
=======================================
  Coverage   80.72%   80.72%           
=======================================
  Files          19       19           
  Lines         970      970           
  Branches       93       93           
=======================================
  Hits          783      783           
  Misses        187      187           

message(STATUS "Moving headers to ${SYSROOT_PATH}/include/xcpp")
foreach(header ${XCPP_HEADERS})
file(COPY ${header} DESTINATION ${SYSROOT_PATH}/include/xcpp)
endforeach()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For this to work, we need to preload the required headers (xdisplay.hpp and xmime.hpp to a location where they are accessible)

I expected the install command to do the job here.

I even tried avoiding the complexity of handling INTERFACE targets and potential CMake nuances with PUBLIC_HEADER and just tried

install(FILES ${XCPP_HEADERS} DESTINATION ${SYSROOT_PATH}/include/xcpp)

But even this isn't doing the job.

Hence here I am

  1. Creating the required directory inside ${SYSROOT_PATH}/include that we are already preloading
  2. Explicitly copying the header files there.

And this works !!
I am not sure why the install isn't comfortable around emscripten !?
But untill someone provides a better solution, this should do the required.

@anutosh491
Copy link
Collaborator Author

Merging to see if this fixes the deployment !

@anutosh491 anutosh491 merged commit a8c460b into compiler-research:main Jan 22, 2025
13 checks passed
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