diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-03-06 11:35:49 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-03-06 11:35:49 -0800 |
commit | 29a6a88c72664b22af21741cc3bf138c02ee32dc (patch) | |
tree | c2692e0673b285ca824838ae4a0a261c18904431 /emcc | |
parent | 4d3410d10ee4007ee9f1d15e9828999c3d4ad9d9 (diff) | |
parent | 6efef45cbfad95034f2ccd450bbca08235dc8936 (diff) |
Merge pull request #848 from manuels/incoming
Add getopt and getopt_long (libc) support
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -1069,7 +1069,21 @@ try: def create_libc(): if DEBUG: print >> sys.stderr, 'emcc: building libc for cache' o_s = [] - for src in ['dlmalloc.c', os.path.join('libcxx', 'new.cpp')]: + libc_files = [ + 'dlmalloc.c', + os.path.join('libcxx', 'new.cpp'), + os.path.join('libc', 'stdlib', 'getopt_long.c'), + os.path.join('libc', 'gen', 'err.c'), + os.path.join('libc', 'gen', 'errx.c'), + os.path.join('libc', 'gen', 'warn.c'), + os.path.join('libc', 'gen', 'warnx.c'), + os.path.join('libc', 'gen', 'verr.c'), + os.path.join('libc', 'gen', 'verrx.c'), + os.path.join('libc', 'gen', 'vwarn.c'), + os.path.join('libc', 'gen', 'vwarnx.c'), + ]; + + for src in libc_files: o = in_temp(os.path.basename(src) + '.o') execute([shared.PYTHON, shared.EMCC, shared.path_from_root('system', 'lib', src), '-o', o], stdout=stdout, stderr=stderr) o_s.append(o) |