stanfordnlp / GloVe

Software in C and data files for the popular GloVe model for distributed word representations, a.k.a. word vectors or embeddings
Apache License 2.0
6.81k stars 1.51k forks source link

Fix building on macOS/Apple Silicon #211

Closed jstasiak closed 1 year ago

jstasiak commented 1 year ago

The build error I got without this patch:

% make
mkdir -p build
gcc -c src/vocab_count.c -o build/vocab_count.o -lm -pthread -O3 -march=native -funroll-loops -Wall -Wextra -Wpedantic
clang: warning: -lm: 'linker' input unused [-Wunused-command-line-argument]
clang: error: the clang compiler does not support '-march=native'
make: *** [build/vocab_count.o] Error 1
AngledLuffa commented 1 year ago

Thanks!