comparison third_party/emsdk/emsdk_env.csh @ 179:8d17f6e6e290

[ThirdParty] Added emsdk bazel rules that can be supported by bazel 9.0.0
author MrJuneJune <me@mrjunejune.com>
date Thu, 22 Jan 2026 21:23:17 -0800
parents
children
comparison
equal deleted inserted replaced
178:94705b5986b3 179:8d17f6e6e290
1 # This script is sourced by the user and uses
2 # their shell. Try not to use tcshisms.
3
4 # Do not execute this script without sourcing,
5 # because it won't have any effect then.
6 # That is, always run this script with
7 #
8 # source ./emsdk_env.csh
9 #
10 # instead of just plainly running with
11 #
12 # ./emsdk_env.csh
13 #
14 # which won't have any effect.
15 set SRC=($_)
16 if ("$SRC" == "") then
17 set SRC="$0"
18 else
19 set SRC="$SRC[1]"
20 endif
21 set CURDIR=`pwd`
22 setenv DIR `dirname "$SRC"`
23 unset SRC
24
25 setenv EMSDK_CSH 1
26
27 eval `$DIR/emsdk construct_env`
28 unsetenv DIR
29
30 unsetenv EMSDK_CSH