Comments (2)
The compiler gets configured through https://github.com/dotnet/runtime/blob/main/eng/native/gen-buildsys.sh#L30-L31 script that exports CCC_CC
and CCC_CXX
environment variables. I would expect that llvm build via cmake is going to respect these env variables as well. Try to set these env variables directly or run this script to set them.
from runtimelab.
This image is setup to use clang-18 both as the C/C++ compiler and the assembler.
This is example of build log from dotnet/runtime build https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_apis/build/builds/717075/logs/439
Look for:
2024-06-22T23:25:19.1457207Z -- Check for working C compiler: /usr/local/bin/clang-18 - skipped
2024-06-22T23:25:19.1465561Z -- Detecting C compile features
2024-06-22T23:25:19.1473467Z -- Detecting C compile features - done
2024-06-22T23:25:19.1661111Z -- Detecting CXX compiler ABI info
2024-06-22T23:25:19.2681211Z -- Detecting CXX compiler ABI info - done
2024-06-22T23:25:19.2774567Z -- Check for working CXX compiler: /usr/local/bin/clang++ - skipped
2024-06-22T23:25:19.2780740Z -- Detecting CXX compile features
2024-06-22T23:25:19.2787635Z -- Detecting CXX compile features - done
2024-06-22T23:25:19.3269188Z Detected Linux x86_64
2024-06-22T23:25:19.3275136Z -- Performing Test COMPILER_SUPPORTS_F_STACK_PROTECTOR_STRONG
2024-06-22T23:25:19.4124657Z -- Performing Test COMPILER_SUPPORTS_F_STACK_PROTECTOR_STRONG - Success
2024-06-22T23:25:19.4129833Z -- Performing Test COMPILER_SUPPORTS_W_IMPLICIT_FALLTHROUGH
2024-06-22T23:25:19.4981939Z -- Performing Test COMPILER_SUPPORTS_W_IMPLICIT_FALLTHROUGH - Success
2024-06-22T23:25:19.4988554Z -- Performing Test COMPILER_SUPPORTS_W_RESERVED_IDENTIFIER
2024-06-22T23:25:19.5850024Z -- Performing Test COMPILER_SUPPORTS_W_RESERVED_IDENTIFIER - Success
2024-06-22T23:25:19.6336920Z -- The ASM compiler identification is Clang 18.1.4 with GNU-like command-line
2024-06-22T23:25:19.6368436Z -- Found assembler: /usr/local/bin/clang-18
from runtimelab.
Related Issues (20)
- [NativeAOT-LLVM] Remove WASI-SDK pthread.h hack
- [NativeAOT-LLVM] LLVM version synchronization and verification
- [NativeAOT-LLVM] Use clang from EMSDK directly to compile bitcode
- [NativeAOT-LLVM] [Question]: Should GCPointerMap have a provision for adding optional fields to GCStaticEETypeNode HOT 3
- [Question] [NativeAOT-LLVM] What defines if jobs has a `Initialize containers` step? HOT 4
- [NativeAOT-LLVM] [Question]: why is c++ 11 not installed in the root fs on the linux distros? HOT 25
- [NativeAOT-LLVM] Delegates marshalling is broken in some scenarios HOT 8
- [NativeAOT-LLVM] DotnetJS exception on marshalled c#-objects finalizer call HOT 2
- [NativeAOT-LLVM] DotnetJS JSExport fails, when function was defined in a Browser class library HOT 4
- [NativeAOT-LLVM] DotnetJS Minor incompatibilities with WASM SDK on Mono runtime
- [NativeAOT-LLVM] Enable bulk memory by default and as a baseline
- [NativeAOT-LLVM] Publishing is broken HOT 2
- [NativeAOT-LLVM] Compilation failure with async/EH/lock HOT 1
- What is next? HOT 1
- [NativeAOT-LLVM] [Question] RhpGcPoll implementation. HOT 4
- [NativeAOT-LLVM] Re-enable the `SharedLibrary` test for WASI P2
- [NativeAOT-LLVM] Implement inlined thread statics for the single-threaded mode
- [NativeAOT-LLVM] Make the ILC-produced object files valid WASM
- [NativeAOT-LLVM] `WasmObjectWriter` efficiency improvements
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from runtimelab.