Skip to content

Commit

Permalink
add libm_file
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Jul 8, 2022
1 parent e2e14cb commit 1d8554f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions base/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,11 @@ ifeq ($(XC_HOST),)
else
@echo "const MACHINE = \"$(XC_HOST)\"" >> $@
endif
ifeq ($(USE_SYSTEM_LIBM),0)
@echo "const libm_name = \"$(LIBMNAME).$(SHLIB_EXT)\"" >> $@
@echo "const libm_name = \"$(LIBMNAME)\"" >> $@
ifeq ($(USE_SYSTEM_LIBM),1)
@echo "const libm_file = \"$(LIBMNAME).$(SHLIB_EXT).$(LIBM_VERSION)\"" >> $@
else
@echo "const libm_name = \"$(LIBMNAME).$(SHLIB_EXT).$(LIBM_VERSION)\"" >> $@
@echo "const libm_file = \"$(LIBMNAME).$(SHLIB_EXT)\"" >> $@
endif
ifeq ($(USE_BLAS64), 1)
@echo "const USE_BLAS64 = true" >> $@
Expand Down
2 changes: 1 addition & 1 deletion base/math.jl
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ log(b::Number, x::Number) = log(promote(b,x)...)

# type specific math functions

const libm = Base.libm_name
const libm = Base.libm_file

# functions with no domain error
"""
Expand Down

0 comments on commit 1d8554f

Please sign in to comment.