Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update build scripts #6

Closed
ignacio opened this issue Sep 7, 2015 · 11 comments
Closed

Update build scripts #6

ignacio opened this issue Sep 7, 2015 · 11 comments

Comments

@ignacio
Copy link
Contributor

ignacio commented Sep 7, 2015

Hi! As mentioned in luarocks/luarocks#382, there is a fix to the appveyor install script. You might want to apply the fix to your script by hand, or you might want to update the whole appveyor integration.

Here is a job that installed busted correctly (but failed because I don't have any test file tu run).

@ignacio
Copy link
Contributor Author

ignacio commented Sep 8, 2015

I see you've updated the scripts. Remember, you need to use LuaRocks HEAD until 2.2.3 is released (due to cmake support)

@xpol
Copy link
Owner

xpol commented Sep 8, 2015

Does the cmake_geneartor="Visual Studio 12 2013" support x64 build?
https://github.com/keplerproject/luarocks/blob/master/src/luarocks/build/cmake.lua#L44 is a elseif not end and if.

@ignacio
Copy link
Contributor Author

ignacio commented Sep 8, 2015

Yes, it does. What LuaRocks does is to add -DCMAKE_GENERATOR_PLATFORM=x64 to the command line.

@ignacio
Copy link
Contributor Author

ignacio commented Sep 8, 2015

I'm running some tests now. It seems that I might have missed something in the script. Please hold on :)

@xpol
Copy link
Owner

xpol commented Sep 8, 2015

👌

@xpol
Copy link
Owner

xpol commented Sep 8, 2015

I think luarocks don't have -DCMAKE_GENERATOR_PLATFORM=x64 set since https://github.com/keplerproject/luarocks/blob/master/src/luarocks/build/cmake.lua#L44 is a elseif.

@ignacio
Copy link
Contributor Author

ignacio commented Sep 8, 2015

Thank you. That was it. I couldn't understand why it started to fail once I corrected the configuration.

https://ci.appveyor.com/project/ignacio/lua-rapidjson/build/job/eqpn24grlbx2bbyf

Give me a minute, I'll fix in LR itself.

@xpol
Copy link
Owner

xpol commented Sep 8, 2015

My fixes here works.
But I'd like to wait you fixes to luarocks and remove the platform tail for cmake_generator.

@ignacio
Copy link
Contributor Author

ignacio commented Sep 8, 2015

Well, thanks for the PR. I'll add that, but I think the fix must not be done in LuaRocks. When you choose the generator, you can specify if you want 64 bits, so we should not second guess the user in this case. So, that elseif is ok. We'll need the platform tail for cmake_generator.

I'm polishing the fix you submitted so it adds the Win64 when necessary.
BTW, that trick with the script variables is neat. Didn't know that.

@xpol
Copy link
Owner

xpol commented Sep 8, 2015

OK. Thank you very much @ignacio !

And I think the x64 flag should applied only once like my setup here:

https://github.com/xpol/lua-rapidjson/blob/master/.scripts/install.bat#L166-L176

Which I does not repeat my self 😄 .

Thank you for your pull request.
You are a great warm ❤️ man to work with!

@ignacio
Copy link
Contributor Author

ignacio commented Sep 8, 2015

😄 Thanks!

@xpol xpol closed this as completed Sep 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants