comparison third_party/emsdk/emsdk_env.csh @ 186:8cf4ec5e2191 hg-web

Fixed merge conflict.
author MrJuneJune <me@mrjunejune.com>
date Fri, 23 Jan 2026 22:38:59 -0800
parents 8d17f6e6e290
children
comparison
equal deleted inserted replaced
176:fed99fc04e12 186:8cf4ec5e2191
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