<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/64832>64832</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Having trouble JIT-compiling code on a Chromebook
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          Yianni-Mitropoulos
      </td>
    </tr>
</table>

<pre>
    (If this is the wrong place to post this, please indicate.)

Hi all, I'm trying to use LLVM C to perform JIT compilation on an Chromebook running ChromeOS on x64-64 hardware. I'm getting this error:

`LLVM ERROR: Target does not support MC emission!`

I did a bit of fishing around and ultimately noticed that ```cLLVMInitializeNativeTarget()``` wasn't setting the target triple correctly, more specifically it was NULL, so I tried setting it manually:

```c
// Let LLVM work out that it's operating on a x86-64 machine running Linux 
LLVMInitializeNativeTarget();

// Create a new LLVM module
llvm_module  = LLVMModuleCreateWithName("my_module");
LLVMSetTarget(llvm_module, "x86_64-linux-gnu");
```

It didn't help. Ideas, anyone?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyEVMGO2zYQ_RrqMrAhUbIsH3TYeGvEhXcDbNIWPQWUNJamoUiBHK7X_fqCkuts2kMAwwbJN2_evJmx8p56g1iLzQexeUxU4MG6-k9SxtDqidjZyQZtfdLY7loLWR3PwAN5IA88IFycNT1MWrUIbGGynud3IfcwaVQegUxHrWJcC7kT6aNIH5bvjwRK6wg8Crkdgd2VTB9Zgkc4nX5_gv3Mie5s3Qi_Hr9Aa8eJtGKyBqwBZWA_ODtiY-03cMGYyLBcffocEW9lsSoLGJTrLsrh-parR-Y5WSwFnbNO5A_vxYkynRX88vLy6UXkD_BFuR4ZOosejGXwYZqsY3jaA47kPVkjZCbK9D3LETrqQEFDDPYMZ_JDzKqcDaYDZToImmlUjPoaWanFDnhQDJFo_rRRxtEQk9L0Nz4rpldcxAhZRUv_RcJFeSPklsHfq0PgRTc7mjRCa53DlvU12j5ah-AnbOlMrdL6CsSRBJ5_O50iwFs4xkjs7pTEMCoTIvr_jt0U387yIOQBTshLLy_WfQMbeKmPWMitBzuhUzNx7Ca8VWXs1qjagQzeG3oiE95gof2pHfmHH1QtKvYOFSMoMHhZ5Iy2CxoXkNav49flAkDkjzPiaT4vgX8QD89qxDmFHK83sJDyfcYY9Rn5ruYdbXRTSPlWlV_LYqVjPavehP8Q3C38YYY4DtHS2AH1tIZjh2peMGWu1qDID0lX590u36kE66zcyWJXZZVMhnrbns9Nnqabssh2WGyxOHdVuqmyJmvPuzZLqJapzNNKpqmUeSrXuyxN266o8qzJsNyUokhxVKTXsZq1dX1C3gesy6LKZaJVg9rP_x5SRm_nx1jW5jFxdYxZNaH3okg1efbfWZhYY_1Rvc6D6mxoNMYVXy0rHm9b2-EyF9-XPAlO1wPz5OP4zc3tiYfQrFs7CnmI_Lef1eTsX9iykIdZlRfyMKv-JwAA__86Q5MZ">