Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Auto-set Make.arm options, also remove NEON flags and bump LLVM to 3.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed May 17, 2015
1 parent c260ea9 commit 074db58
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 31 deletions.
15 changes: 0 additions & 15 deletions Make.arm

This file was deleted.

20 changes: 20 additions & 0 deletions Make.inc
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,26 @@ else
build_shlibdir = $(build_libdir)
endif

# If we are running on ARM, set certain options automatically
ifneq (,$(findstring arm,$(ARCH)))
LLVM_ASSERTIONS=1
LLVM_FLAGS+="--with-cpu=cortex-a9 --with-float=hard --with-abi=aapcs-vfp --enable-assertions"

OPENBLAS_DYNAMIC_ARCH=0
OPENBLAS_TARGET_ARCH=ARMV7
USE_BLAS64=0

LLVM_VER=3.6.0

USE_SYSTEM_LIBM=1
USE_SYSTEM_FFTW=1
USE_SYSTEM_GMP=1
USE_SYSTEM_MPFR=1

JCFLAGS += -fsigned-char
endif


ifeq (exists, $(shell [ -e $(JULIAHOME)/Make.user ] && echo exists ))
include $(JULIAHOME)/Make.user
endif
Expand Down
18 changes: 2 additions & 16 deletions README.arm.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,9 @@ following command:
sudo apt-get install libblas3gf liblapack3gf libfftw3-dev libgmp3-dev libmpfr-dev libblas-dev liblapack-dev cmake gcc-4.7 g++-4.7 gfortran libgfortran3
````

# ARM specific Make.user
# ARM specific build problems

Please start from the standard [build
instructions](README.md#source-download-and-compilation), in
particular the Linux notes.

Next, create a file in the `julia` top-level directory called
`Make.user` with the following contents:

```
include $(JULIAHOME)/Make.arm
```

Then proceed to build as described in the primary README. Just typing
`make -j 4` at this stage should build julia.

If you run in to issues building LLVM, see these notes:
If you run into issues building LLVM, see these notes:
[https://llvm.org/docs/HowToBuildOnARM.html](https://llvm.org/docs/HowToBuildOnARM.html)

# Raspberry Pi
Expand Down

0 comments on commit 074db58

Please sign in to comment.