QuTech-Delft / OpenQL

OpenQL: A Portable Quantum Programming Framework for Quantum Accelerators. https://dl.acm.org/doi/10.1145/3474222
https://openql.readthedocs.io
Other
100 stars 44 forks source link

Fix cc files #353

Closed jvansomeren closed 4 years ago

jvansomeren commented 4 years ago

.cc programs in tests and in examples that were not working because of use of deprecated features, were updated. In the related CMakeLists.txt files, these were uncommented in. make test passes now for all

jvanstraten commented 4 years ago

Can you remove the fixme comments in the tests/examples CMakeLists as well? Since they don't apply anymore. Looks good to me otherwise.

jvansomeren commented 4 years ago

Removed FIXME lines. Current failures don't seem to be caused by fixes but by make system.

jvanstraten commented 4 years ago

Current failures don't seem to be caused by fixes but by make system.

No, it's caused by you rewinding libqasm back to before the rewrite. Please don't add+commit changes unrelated to the pull request for one thing, separate features/bugfixes/updates/whatever belong in separate PRs. As for why this happened in the first place, when you do git checkout <branch> to switch branches, git for some reason doesn't update submodules as well. You have to do git submodule update for that. Because you never did that when the actual new version of libqasm was committed into OpenQL, libqasm was still stuck on an old version from way back on your system. By add+committing libqasm rather than doing git submodule update you ended up rewinding libqasm back to that old version.

For reference, to actually pull new changes from a submodule, you need to do git pull from within the submodule, then git checkout for whatever branch or commit you want to set it to, and then you add+commit in the parent repository. You can never get new changes without pulling in the submodule first. But such things (along with any fixes needed) belong in a seperate pull request.