-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Build bindash on osx #51661
Build bindash on osx #51661
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,25 @@ | ||
#!/bin/bash | ||
|
||
export INCLUDES="-I${PREFIX}/include" | ||
export LIBPATH="-L${PREFIX}/lib" | ||
export LDFLAGS="${LDFLAGS} -L${PREFIX}/lib" | ||
|
||
mkdir release && pushd release | ||
cmake -DCMAKE_BUILD_TYPE=Release .. | ||
|
||
if [[ `uname` == "Darwin" ]]; then | ||
export CONFIG_ARGS="-DCMAKE_FIND_FRAMEWORK=NEVER -DCMAKE_FIND_APPBUNDLE=NEVER" | ||
else | ||
export CONFIG_ARGS="" | ||
fi | ||
|
||
cmake -S .. -B . -DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \ | ||
-DCMAKE_CXX_COMPILER="${CXX}" \ | ||
-DCMAKE_CXX_FLAGS="${CXXFLAGS} -O3 -std=c++14 -I${PREFIX}/include" \ | ||
"${CONFIG_ARGS}" | ||
|
||
make VERBOSE=1 -j ${CPU_COUNT} | ||
|
||
install -d $PREFIX/bin | ||
install bindash $PREFIX/bin | ||
popd |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,7 @@ source: | |
sha256: 6e4bf36fd04195ed0738ea8bf835eca1e400b5ce6eef3902bdf0673955d15166 | ||
|
||
build: | ||
skip: True # [osx] | ||
number: 2 | ||
number: 3 | ||
run_exports: | ||
- {{ pin_subpackage('bindash', max_pin="x") }} | ||
|
||
|
@@ -25,7 +24,6 @@ requirements: | |
- libgomp # [linux] | ||
- llvm-openmp # [osx] | ||
run: | ||
- zlib | ||
- libgomp # [linux] | ||
- llvm-openmp # [osx] | ||
|
||
|
@@ -34,16 +32,18 @@ test: | |
- bindash --help 2>&1 | grep sketch | ||
|
||
about: | ||
home: https://github.com/zhaoxiaofei/bindash | ||
license: Apache-2.0 | ||
home: "https://github.com/zhaoxiaofei/bindash" | ||
license: "Apache-2.0" | ||
Comment on lines
+35
to
+36
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Update documentation URLs to point to the original repository The verification shows that
Please update the 🔗 Analysis chainVerify repository relationships and documentation links The URLs point to different repositories:
This could lead to documentation inconsistencies or broken links if the repositories get out of sync. Also applies to: 40-41 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Verify repository relationships and README existence
# Check if both repositories exist and their relationship
gh repo view zhaoxiaofei/bindash --json parent,isFork,defaultBranchRef
gh repo view jianshu93/bindash --json parent,isFork,defaultBranchRef
# Verify README existence at the specified version
gh api repos/jianshu93/bindash/contents/README.md?ref=v2.3 --jq '.sha'
Length of output: 506 |
||
license_family: APACHE | ||
license_file: LICENSE | ||
summary: "Fast and precise comparison of genomes and metagenomes (in the order of terabytes) on a typical personal laptop." | ||
dev_url: https://github.com/zhaoxiaofei/bindash | ||
dev_url: "https://github.com/zhaoxiaofei/bindash" | ||
doc_url: "https://github.com/jianshu93/bindash/blob/v{{ version }}/README.md" | ||
|
||
extra: | ||
additional-platforms: | ||
- linux-aarch64 | ||
- osx-arm64 | ||
identifiers: | ||
- doi:10.1093/bioinformatics/bty651 | ||
- doi:10.1101/2024.03.13.584875 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add error handling for directory operations.
The
pushd
command should handle potential failures to prevent silent build errors.Apply this diff to add error handling:
📝 Committable suggestion
🧰 Tools
🪛 Shellcheck