Skip to content
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

Improve user experience #163

Closed
rturrado opened this issue Sep 26, 2023 · 1 comment
Closed

Improve user experience #163

rturrado opened this issue Sep 26, 2023 · 1 comment
Assignees

Comments

@rturrado
Copy link
Contributor

libqasm's equivalent to this OpenQL issue.

Current build line looks something like:

conan build . -s:h compiler.cppstd=20 -s:h libqasm/*:build_type=Release -o libqasm/*:build_tests=True -o openql/*:compat=False -b missing

As a result of the conversation for this issue that I opened, I've found out that we could turn it into something like:

conan build . -pr=conan/profiles/tests-release -b missing

Explanation (see also here):

  1. If you set CMAKE_CXX_STANDARD in your project, you don't need to pass the compiler version as a command line parameter. I've noticed we were not doing that in OpenQL.
  2. There is a way of not working with command line options at all, but defining them in a profile. For example, we could provide a conan/profiles folder together with the code, including a set of predefined profiles, e.g. tests-release, which would look something like:
include(default)

[settings]
libqasm/*:build_type=Release
[options]
libqasm/*:asan_enabled=False
libqasm/*:build_tests=True
libqasm/*:compat=False

And then just compile with conan build . -pr=conan/profiles/tests-release.

Or, these profiles may be copied to the ~./conan2/profiles folder, e.g. for this case, with a name such as libqasm-tests-release, and then build with conan build . -pr=libqasm-tests-release.

@rturrado rturrado self-assigned this Sep 27, 2023
@rturrado
Copy link
Contributor Author

rturrado commented Sep 27, 2023

This should be fixed now by this commit.

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

No branches or pull requests

1 participant