Created
April 22, 2015 10:10
-
-
Save warrenseine/4269d76b20a8f8146d4a to your computer and use it in GitHub Desktop.
iOS 8.1 Emscripten issue with std::chrono
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <chrono> | |
#include <iostream> | |
int | |
main() | |
{ | |
std::cout << "before" << std::endl; | |
auto now = std::chrono::high_resolution_clock::now(); | |
std::cout << "after" << std::endl; | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main.html: main.cpp | |
em++ -std=c++11 -O2 main.cpp -o main.bc | |
emcc -O2 main.bc -o main.html | |
clean: | |
rm -f main.bc main.js main.html main.html.map main.html.mem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment