Build node.js with clang.
2014-07-05 13:59
1186 查看
Since I chose clang as my favorite compiler,
The default compiler of node.js is g++, so it needs a little trick to force node.js to use clang. Here is it:
1. Run configure with clang support.
2. Specify complier.
Be sure you didn't install g++, then you can do so:
3. Finally, make && make install.
(Don't forget to remove the fake g++ link).
Good luck!
The default compiler of node.js is g++, so it needs a little trick to force node.js to use clang. Here is it:
1. Run configure with clang support.
CC=clang ./configure --prefix=/usr
2. Specify complier.
Be sure you didn't install g++, then you can do so:
sudo ln -n /usr/bin/clang /usr/bin/g++ CC=clang make
3. Finally, make && make install.
(Don't forget to remove the fake g++ link).
make && sudo make install sudo rm /usr/bin/g++
Good luck!
相关文章推荐
- [Docker] Build a Simple Node.js Web Server with Docker
- Build File Server With NodeJS
- [Node.js] Build microservices in Node.js with micro
- pypy with twisted vs nodejs
- Build a JavaScript Compressor tool using NodeJS, ExpressJS, Jade, UglifyJS tutorial Read more: http
- Scrap websites with nodejs!
- Asynchronous Code Design with Node.js
- Asynchronous Code Design with Node.js
- [Node.js]32. Level 7: Working with Lists -- Redis
- Raspberry Pi with Node.js and Arduino
- Build a JavaScript Compressor tool using NodeJS, ExpressJS, Jade, UglifyJS tutorial Read more: http
- nodejs redis with kue module init
- Learning Server-Side JavaScript with Node.js
- Getting Started with Mongoose and Node.js – A Sample Comments System | Dev Notes
- NodeJS with Express 4.x
- Node.js HTTP requests with gzip/deflate compression
- Node.js: Building for Scalability with Server-Side JavaScript
- Node.js – Debugging with node-inspector
- Save and render a webpage with phantomjs and node.js
- Getting Started with Node.js on Heroku