Skip to content
Discussion options

You must be logged in to vote

Putting more sophisticated code into check_cxx_source_compiles(..) might be able trigger an compile issue. While we can't include vsg/threading/atomics.h we can recreate some of the key code that appears to be tripping up the normal compile. I checked in to VSG master some addition atomic code inspired by include/vsg/threading/atomics.h: fce7e60

  check_cxx_source_compiles("
    #include <atomic>
    int main()
    {
        std::atomic_uint64_t a64(1);
        auto orig_value = a64.load();

        uint64_t new_value = 1;
        auto r = a64.compare_exchange_weak(orig_value, new_value);

        return 0;
    }"
    HAVE_CXX_ATOMIC_WITHOUT_LIB
  )

Could you try out the latest VSG maste…

Replies: 15 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@brunorzn
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@vsg-dev
Comment options

@brunorzn
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@vsg-dev
Comment options

@vsg-dev
Comment options

@brunorzn
Comment options

@vsg-dev
Comment options

Answer selected by brunorzn
@brunorzn
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants