Skip to content

Commit 45f53fb

Browse files
authored
Use the power of the walrus. NFC (emscripten-core#24809)
Lets go walrus! Its been available since python 3.8 which is the minimum version we require.
1 parent 6422dc9 commit 45f53fb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

emcc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,7 @@ def run(args):
323323

324324
# Additional compiler flags that we treat as if they were passed to us on the
325325
# commandline
326-
EMCC_CFLAGS = os.environ.get('EMCC_CFLAGS')
327-
if EMCC_CFLAGS:
326+
if EMCC_CFLAGS := os.environ.get('EMCC_CFLAGS'):
328327
args += shlex.split(EMCC_CFLAGS)
329328

330329
if DEBUG:

0 commit comments

Comments
 (0)