Skip to content

Commit

Permalink
chore(c_api): fix build on M1 mac
Browse files Browse the repository at this point in the history
  • Loading branch information
IceTDrinker committed Apr 11, 2024
1 parent a9fc3cf commit 10cf6de
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 8 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/m1_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ jobs:
run: |
make test_boolean
# Because we do "illegal" things with the build system which Cargo does not seem to like much
# we need to clear the cache to make sure the C API is built properly and does not use a stale
# cached version
- name: Clear build cache
run: |
cargo clean
- name: Run C API tests
run: |
make test_c_api
Expand Down
2 changes: 1 addition & 1 deletion tfhe/c_api_tests/test_boolean_keygen.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "tfhe.h"
#include <tfhe.h>
#include <assert.h>
#include <inttypes.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion tfhe/c_api_tests/test_boolean_server_key.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "tfhe.h"
#include <tfhe.h>
#include <assert.h>
#include <inttypes.h>
#include <stdio.h>
Expand Down
3 changes: 1 addition & 2 deletions tfhe/c_api_tests/test_high_level_zk.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "tfhe.h"
#include <tfhe.h>
#include <assert.h>
#include <stdlib.h>
#include <tfhe.h>

int main(void) {
// We want to use zk-proof, which requires bounded random distributions
Expand Down
2 changes: 1 addition & 1 deletion tfhe/c_api_tests/test_micro_bench_and.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "tfhe.h"
#include <tfhe.h>
#include <assert.h>
#include <inttypes.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion tfhe/c_api_tests/test_shortint_keygen.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "tfhe.h"
#include <tfhe.h>
#include <assert.h>
#include <inttypes.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion tfhe/c_api_tests/test_shortint_pbs.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "tfhe.h"
#include <tfhe.h>
#include <assert.h>
#include <inttypes.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion tfhe/c_api_tests/test_shortint_server_key.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "tfhe.h"
#include <tfhe.h>
#include <assert.h>
#include <inttypes.h>
#include <stdio.h>
Expand Down

0 comments on commit 10cf6de

Please sign in to comment.