File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ Base.@kwdef mutable struct LinkRecipe
3434 image_recipe:: ImageRecipe = ImageRecipe ()
3535 outname:: String = " "
3636 rpath:: Union{String, Nothing} = nothing
37+ cc_flags:: Vector{String} = String[]
3738end
3839
3940Base. @kwdef mutable struct BundleRecipe
Original file line number Diff line number Diff line change @@ -103,7 +103,11 @@ function link_products(recipe::LinkRecipe)
103103 mkpath (dirname (recipe. outname))
104104 is_shared_output = image_recipe. output_type != " --output-exe"
105105 # Base command
106- cmd2 = ` $(compiler_cmd) $(allflags) $(rpath_str) -o $(recipe. outname) `
106+ cmd2 = ` $(compiler_cmd) `
107+ for f in recipe. cc_flags
108+ cmd2 = ` $cmd2 $f `
109+ end
110+ cmd2 = ` $cmd2 $(allflags) $(rpath_str) -o $(recipe. outname) `
107111 if is_shared_output
108112 cmd2 = ` $cmd2 -shared`
109113 end
You can’t perform that action at this time.
0 commit comments