Question
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?
Answer
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
-
Verify Available Toolchains
First, check if LLVM-3.6 is available in your toolchain list by running:tizen build-native --helpLook for "Supported compiler version" in the output to confirm LLVM-3.6 is listed.
-
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 -
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
--helpoption doesn't work as expected, consider updating to the latest version of the command-line tools.