Skip to content

Instantly share code, notes, and snippets.

# Python 3
import sys
import socketserver
from http.server import SimpleHTTPRequestHandler
class WasmHandler(SimpleHTTPRequestHandler):
def end_headers(self):
self.send_header("Cross-Origin-Opener-Policy", "same-origin")
self.send_header("Cross-Origin-Embedder-Policy", "require-corp")
@jerrans
jerrans / usd-on-arm.sh
Created May 25, 2021 07:59
Building USD on M1 Mac
git clone --recursive https://github.com/PixarAnimationStudios/USD
cd USD
In build_scripts/build_usd.py replace the line:
"https://github.com/oneapi-src/oneTBB/archive/2017_U6.tar.gz"
With:
"https://github.com/jerrans/oneTBB/archive/refs/heads/2017_U6/schmidje/armsupport.zip"
diff --git a/emsdk.py b/emsdk.py
index 6d30c56..e2010bc 100644
--- a/emsdk.py
+++ b/emsdk.py
@@ -1241,12 +1241,12 @@ def find_latest_installed_tool(name):
# npm install in Emscripten root directory
def emscripten_npm_install(tool, directory):
- node_tool = find_latest_installed_tool('node')
- if not node_tool: