summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src
diff options
context:
space:
mode:
author Justin Kerk <dopefishjustin@gmail.com>2016-02-16 20:16:11 +0000
committer Justin Kerk <dopefishjustin@gmail.com>2016-02-16 20:16:11 +0000
commit11f82be5400b274bc624b520f045dbc573182fe8 (patch)
treebc22ea36def9a144ee2f6451ad4309fab6a0b1e1 /scripts/src
parente446d482f886e014b1420425c6af00db5f2b3b7f (diff)
Fix Emscripten build (nw)
Diffstat (limited to 'scripts/src')
-rw-r--r--scripts/src/osd/sdl.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/src/osd/sdl.lua b/scripts/src/osd/sdl.lua
index 0aad67e89a2..b89a25814ad 100644
--- a/scripts/src/osd/sdl.lua
+++ b/scripts/src/osd/sdl.lua
@@ -96,7 +96,9 @@ end
function sdlconfigcmd()
- if not _OPTIONS["SDL_INSTALL_ROOT"] then
+ if _OPTIONS["targetos"]=="asmjs" then
+ return "sdl2-config"
+ elseif not _OPTIONS["SDL_INSTALL_ROOT"] then
return _OPTIONS['TOOLCHAIN'] .. "pkg-config sdl2"
else
return path.join(_OPTIONS["SDL_INSTALL_ROOT"],"bin","sdl2") .. "-config"