2025-02-01 07:16:05 +00:00
|
|
|
From c2a07f196033e782b999de35d50d5ba05d253aef Mon Sep 17 00:00:00 2001
|
2024-01-23 12:18:42 +00:00
|
|
|
From: ryanking13 <def6488@gmail.com>
|
|
|
|
Date: Sat, 20 Jan 2024 19:02:32 +0900
|
2025-01-31 20:02:10 +00:00
|
|
|
Subject: [PATCH 4/6] Raise when no argument is given
|
2024-01-23 12:18:42 +00:00
|
|
|
|
|
|
|
Emscripten 3.1.51 does not raise an error when no argument is given.
|
|
|
|
Some build tools (e.g. ffmpeg) relies on this behavior, so we should
|
|
|
|
keep it.
|
|
|
|
|
|
|
|
Upstream issue: https://github.com/emscripten-core/emscripten/issues/21116
|
|
|
|
---
|
|
|
|
emcc.py | 3 +++
|
|
|
|
1 file changed, 3 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/emcc.py b/emcc.py
|
2025-02-01 07:16:05 +00:00
|
|
|
index fcaf2b91e..385af3f67 100644
|
2024-01-23 12:18:42 +00:00
|
|
|
--- a/emcc.py
|
|
|
|
+++ b/emcc.py
|
2025-02-01 07:16:05 +00:00
|
|
|
@@ -660,6 +660,9 @@ There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR P
|
2024-01-23 12:18:42 +00:00
|
|
|
print(libname)
|
|
|
|
return 0
|
|
|
|
|
|
|
|
+ if not input_files and not state.link_flags:
|
|
|
|
+ exit_with_error('no input files')
|
|
|
|
+
|
|
|
|
if options.reproduce:
|
|
|
|
create_reproduce_file(options.reproduce, args)
|
|
|
|
|
|
|
|
--
|
2024-05-07 07:59:57 +00:00
|
|
|
2.34.1
|
2024-01-23 12:18:42 +00:00
|
|
|
|