Skip to content

Commit 7dd3e09

Browse files
committed
Updates for Julia 1.0
1 parent 6a0b601 commit 7dd3e09

File tree

5 files changed

+10
-12
lines changed

5 files changed

+10
-12
lines changed

.ci/build_tarballs.jl

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ function getscript(version)
1111
return """
1212
Julia_ROOT=/usr/local
1313
14-
apk add p7zip
15-
1614
# Download julia
1715
cd /usr/local
18-
curl -L "https://github.com/barche/julia-binaries/releases/download/$version/julia-$version-\$target.tar.gz" | tar -zx --strip-components=1
16+
curl -L "https://github.com/JuliaPackaging/JuliaBuilder/releases/download/$version/julia-$version-\$target.tar.gz" | tar -zx --strip-components=1
1917
2018
# Build libcxxwrap
2119
cd \$WORKSPACE/srcdir/libcxxwrap-julia*
@@ -31,11 +29,11 @@ end
3129
# These are the platforms we will build for by default, unless further
3230
# platforms are passed in on the command line
3331
platforms = [
34-
#Linux(:i686),
3532
Linux(:x86_64),
3633
MacOS(:x86_64),
3734
Windows(:i686),
38-
Windows(:x86_64)
35+
Windows(:x86_64),
36+
#Linux(:i686)
3937
]
4038

4139
# The products that we will ensure are always built
@@ -52,5 +50,5 @@ version_number = get(ENV, "TRAVIS_TAG", "")
5250
if version_number == ""
5351
version_number = "v0.99"
5452
end
55-
download_info_07 = build_tarballs(ARGS, "libcxxwrap-julia-0.7", VersionNumber(version_number), sources, getscript("0.7.0-beta"), platforms, products, dependencies)
56-
@show download_info_07
53+
build_tarballs(ARGS, "libcxxwrap-julia-0.7", VersionNumber(version_number), sources, getscript("0.7.0"), platforms, products, dependencies)
54+
build_tarballs(ARGS, "libcxxwrap-julia-1.0", VersionNumber(version_number), sources, getscript("1.0.0"), platforms, products, dependencies)

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ sudo: required
2020
before_script:
2121
- cd ../..
2222
- pwd
23-
- julia -e 'Pkg.clone("https://github.com/JuliaPackaging/BinaryProvider.jl")'
23+
- julia -e 'Pkg.add("BinaryProvider")'
2424
- julia -e 'Pkg.clone("https://github.com/JuliaPackaging/BinaryBuilder.jl"); Pkg.build()'
2525

2626
script:

include/jlcxx/jlcxx_config.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#define JLCXX_VERSION_MAJOR 0
1717
#define JLCXX_VERSION_MINOR 3
18-
#define JLCXX_VERSION_PATCH 1
18+
#define JLCXX_VERSION_PATCH 2
1919

2020
// From https://stackoverflow.com/questions/5459868/concatenate-int-to-string-using-c-preprocessor
2121
#define __JLCXX_STR_HELPER(x) #x

include/jlcxx/type_conversion.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define JLCXX_TYPE_CONVERSION_HPP
33

44
#include <julia.h>
5-
#if JULIA_VERSION_MAJOR == 0 && JULIA_VERSION_MINOR > 4
5+
#if JULIA_VERSION_MAJOR == 0 && JULIA_VERSION_MINOR > 4 || JULIA_VERSION_MAJOR > 0
66
#include <julia_threads.h>
77
#endif
88

src/jlcxx.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "jlcxx/jlcxx_config.hpp"
55

66
#include <julia.h>
7-
#if JULIA_VERSION_MAJOR == 0 && JULIA_VERSION_MINOR > 4
7+
#if JULIA_VERSION_MAJOR == 0 && JULIA_VERSION_MINOR > 4 || JULIA_VERSION_MAJOR > 0
88
#include <julia_threads.h>
99
#endif
1010

@@ -19,7 +19,7 @@ JLCXX_API jl_array_t* gc_protected()
1919
static jl_array_t* m_arr = nullptr;
2020
if (m_arr == nullptr)
2121
{
22-
#if JULIA_VERSION_MAJOR == 0 && JULIA_VERSION_MINOR > 4
22+
#if JULIA_VERSION_MAJOR == 0 && JULIA_VERSION_MINOR > 4 || JULIA_VERSION_MAJOR > 0
2323
jl_value_t* array_type = apply_array_type(jl_any_type, 1);
2424
m_arr = jl_alloc_array_1d(array_type, 0);
2525
#else

0 commit comments

Comments
 (0)