Skip to content

Commit

Permalink
mk: mbedcrypto should be optional
Browse files Browse the repository at this point in the history
  • Loading branch information
yoursunny committed Jan 29, 2022
1 parent b3222c2 commit 9d15566
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
fi
- name: build and test with LLVM
run: |
LDFLAGS='-fuse-ld=lld-11 -L/usr/local/lib' meson build.llvm --native-file mk/native-llvm.txt --buildtype debugoptimized -Db_ndebug=true -Dwerror=true -Dunittest=enabled -Dprograms=enabled
LDFLAGS='-fuse-ld=lld-11 -L/usr/local/lib' meson build.llvm --native-file mk/native-llvm.ini --buildtype debugoptimized -Db_ndebug=true -Dwerror=true -Dunittest=enabled -Dprograms=enabled
cd build.llvm
if ! ninja test; then
cat meson-logs/testlog.txt && false
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ endif

conf.set('NDNPH_PORT_FS_LINUX', '')

mbedcrypto = cpp.find_library('mbedcrypto', has_headers: ['mbedtls/ecdh.h'])
mbedcrypto = cpp.find_library('mbedcrypto', has_headers: ['mbedtls/ecdh.h'], required: false)
if mbedcrypto.found()
conf.set('NDNPH_HAVE_MBED', '')
endif
Expand Down

0 comments on commit 9d15566

Please sign in to comment.