diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-05-01 10:01:16 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-05-01 10:01:16 -0700 |
commit | 18c03af5f0ee66eb0d75ba3892cd31c72ea6d5c2 (patch) | |
tree | 499f1d85ab2a8431a1137cecb8f8fb82d4d41f7c /emcc | |
parent | 48ae14de71a389f29fdb6542e04e1c805788f5bb (diff) | |
parent | cb42d258c2ca1035cac73e7635992d997f9df735 (diff) |
Merge branch 'newtriple' into incoming
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -557,6 +557,7 @@ if CONFIGURE_CONFIG or CMAKE_CONFIG: cmd = [compiler] + list(filter_emscripten_options(sys.argv[1:])) if not use_js: cmd += shared.EMSDK_OPTS + ['-DEMSCRIPTEN'] + if use_js: cmd += ['-s', 'ERROR_ON_UNDEFINED_SYMBOLS=1'] # configure tests should fail when an undefined symbol exists if DEBUG: print >> sys.stderr, 'emcc, just configuring: ', ' '.join(cmd) if debug_configure: open(tempout, 'a').write('emcc, just configuring: ' + ' '.join(cmd) + '\n\n') @@ -1032,6 +1033,18 @@ try: if minify_whitespace is None: minify_whitespace = opt_level >= 2 and not keep_js_debug + assert shared.LLVM_TARGET in shared.COMPILER_OPTS + if shared.LLVM_TARGET == 'i386-pc-linux-gnu': + shared.Settings.TARGET_X86 = 1 + shared.Settings.TARGET_LE32 = 0 + assert 'le32-unknown-nacl' not in shared.COMPILER_OPTS + elif shared.LLVM_TARGET == 'le32-unknown-nacl': + shared.Settings.TARGET_LE32 = 1 + shared.Settings.TARGET_X86 = 0 + assert 'i386-pc-linux-gnu' not in shared.COMPILER_OPTS + else: + raise Exception('unknown llvm target: ' + str(shared.LLVM_TARGET)) + ## Compile source code to bitcode if DEBUG: print >> sys.stderr, 'emcc: compiling to bitcode' |