mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-22 22:31:30 +03:00
6 lines
405 B
Bash
Executable File
6 lines
405 B
Bash
Executable File
#!/usr/bin/env sh
|
|
cc=$(which clang-3.6||which gcc-4.9||which clang||which gcc)
|
|
so=$(test -f /etc/asl.conf && printf dylib|| printf so)
|
|
$cc "-Dinline=__attribute__((__always_inline__))" -O3 -march=native -std=c11 -Wextra -Wpedantic -Wall -dynamic -shared keccak-tiny.c -o libkeccak-tiny.$so
|
|
$cc -Os -march=native -std=c11 -Wextra -Wpedantic -Wall -dynamic -shared keccak-tiny.c -o libkeccak-tiny-small.$so
|