Skip to content

Instantly share code, notes, and snippets.

@warrenseine
Created April 22, 2015 10:10
Show Gist options
  • Save warrenseine/4269d76b20a8f8146d4a to your computer and use it in GitHub Desktop.
Save warrenseine/4269d76b20a8f8146d4a to your computer and use it in GitHub Desktop.
iOS 8.1 Emscripten issue with std::chrono
#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;
}
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