Skip to content

Commit 6cd9d55

Browse files
giordanostaticfloat
authored andcommitted
Print supported_platforms() when wizard recipe builds for all platforms
1 parent b75a636 commit 6cd9d55

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/wizard/deploy.jl

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@ function print_build_tarballs(io::IO, state::WizardState)
33
sources_string = join(map(urlhashes) do x
44
string(repr(x[1])," =>\n ", repr(x[2]), ",\n")
55
end,"\n ")
6-
platforms_string = join(state.platforms,",\n ")
6+
if Set(state.platforms) == Set(supported_platforms())
7+
platforms_string = "supported_platforms()"
8+
else
9+
platforms_string = """
10+
[
11+
$(join(state.platforms,",\n "))
12+
]
13+
"""
14+
end
715

816
stuff = collect(zip(state.files, state.file_kinds, state.file_varnames))
917
products_string = join(map(stuff) do x
@@ -49,9 +57,7 @@ function print_build_tarballs(io::IO, state::WizardState)
4957
5058
# These are the platforms we will build for by default, unless further
5159
# platforms are passed in on the command line
52-
platforms = [
53-
$(platforms_string)
54-
]
60+
platforms = $(platforms_string)
5561
5662
# The products that we will ensure are always built
5763
products = [

0 commit comments

Comments
 (0)