Skip to content

Do not use -latomic on macOS - #119

Closed
kojix2 wants to merge 1 commit into
pangenome:masterfrom
kojix2:kojix2-mac2
Closed

Do not use -latomic on macOS#119
kojix2 wants to merge 1 commit into
pangenome:masterfrom
kojix2:kojix2-mac2

Conversation

@kojix2

@kojix2 kojix2 commented Nov 15, 2023

Copy link
Copy Markdown

This pull request is to avoid specifying -latomic on macOS.

I refer to the following pull request.

@ekg

ekg commented Nov 15, 2023 via email

Copy link
Copy Markdown
Collaborator

@kojix2

kojix2 commented Nov 16, 2023

Copy link
Copy Markdown
Author
# add the "-latomic" option only if the system name is not "Darwin.
$<$<NOT:$<STREQUAL:${CMAKE_SYSTEM_NAME},Darwin>>:-latomic>

It works on my Mac mini.
There are no errors related to -latomic.
Although, this code was suggested by ChatGPT, after all...

@AndreaGuarracino

Copy link
Copy Markdown
Member

Thanks for this. seqwish has since been rewritten in Rust and the C++ build moved under cpp/, so this patch no longer applies to CMakeLists.txt at the repo root and can't merge. The macOS -latomic fix is still valid for the legacy C++ build; if you still use it, it can be re-applied to cpp/CMakeLists.txt. Closing this one as obsolete against the current layout.

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.

3 participants