Skip to content

Commit 9256c71

Browse files
luislavenatenderlove
authored andcommitted
Fix mini ports compilation issue
Host might not be set when doing native compilation.
1 parent 45d4cd9 commit 9256c71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/vendor_sqlite3.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def define_sqlite_task(platform, host)
1717

1818
unless File.exist?(checkpoint)
1919
cflags = "-O2 -DSQLITE_ENABLE_COLUMN_METADATA"
20-
cflags << " -fPIC" if recipe.host.include?("x86_64")
20+
cflags << " -fPIC" if recipe.host && recipe.host.include?("x86_64")
2121
recipe.configure_options << "CFLAGS='#{cflags}'"
2222
recipe.cook
2323
touch checkpoint

0 commit comments

Comments
 (0)