Command-line build with LLVM 3.6

Original Created Oct 28, 2016 | Regeneration Apr 22, 2026

My native project is set to use LLVM 3.6 in Tizen Studio to utilize std::thread functionality. However, when I export a command-line project and build using:

tizen build-native -a arm -c llvm -C Debug

The system defaults to LLVM 3.4, causing the build to fail (since LLVM 3.4 doesn't support std::thread).

Is there a way to explicitly specify the compiler version when performing a command-line build?

Problem Understanding

The user needs to build a native Tizen project using LLVM 3.6 specifically to support std::thread functionality. The default command-line build uses LLVM 3.4, which lacks this support.

Solution Methods

  1. Verify Available Toolchains
    First, check if LLVM-3.6 is available in your toolchain list by running:

    tizen build-native --help
    

    Look for "Supported compiler version" in the output to confirm LLVM-3.6 is listed.

  2. Update Toolchain (If Needed)
    If LLVM-3.6 isn't available, update your toolchain using the package manager:

    package-manager-cli install LLVM-3.6
    
  3. Specify Compiler Version
    When building, explicitly specify LLVM-3.6 in your command:

    tizen build-native -a arm -c llvm-3.6 -C Debug -- ~/your-project-path
    

Code Examples

Example build command with LLVM-3.6:

tizen build-native -a arm -c llvm-3.6 -C Debug -- ~/workspace/my-project

Additional Tips

  • Ensure your Tizen Studio and CLI tools are up-to-date to avoid compatibility issues.
  • If the --help option doesn't work as expected, consider updating to the latest version of the command-line tools.

Customize your cookie preferences

You can enable or disable non-essential cookies. Essential cookies are always on to ensure the site works properly and to keep you signed in.

Necessary

These cookies are necessary for the website to function properly and cannot be switched off. They help with things like logging in and setting your privacy preferences.

Always on

Analytics

These cookies help us improve the site by tracking which pages are most popular and how visitors move around the site.

Enable analytics cookies
Public Forum Public Forum
Employees only. Please sign in with your company account.