Build node.js with clang.
来源:互联网 发布:爱知日语培训 编辑:程序博客网 时间:2024/05/17 05:08
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.
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 installsudo rm /usr/bin/g++
Good luck!
0 0
- Build node.js with clang.
- Node.js – Debugging with node-inspector
- upgrade node.js with n
- Using Redis with Node.js
- Build Desktop Applications Using Node.JS
- node.js错误 --> node-pre-gyp install --fallback-to-build
- Learning Server-Side JavaScript with Node.js
- Getting Started With Node.js and mongoDB
- Asynchronous Code Design with Node.js
- Asynchronous Code Design with Node.js
- Testing in Node.js with Mocha
- Raspberry Pi with Node.js and Arduino
- Raspberry Pi with Node.js and Arduino
- My first web project with Node.js
- Node.js clustering made easy with PM2
- Starting out with Node.js and AngularJS
- Node.js : Using Promises with mongoosejs
- Building the kernel with clang
- Ubuntu 10.04 安装网卡驱动
- 卡在精粹操盘的车辙眼睛
- mygui初探(一)基础
- linux远程开机(wakeonlan)
- html中翻书特效实现
- Build node.js with clang.
- 【原创】Tiny6410用SD卡烧写LInux到Nandflash
- 加强腿部肌肉的心动
- hdu1372 dfs搜索之国际象棋的马
- UVa 1329 - Corporative Network Union Find题解
- Item2: Prefer C++-style casts
- nginx出现403 forbidden错误的两种原因
- HTML常用标签(2)————文本标签
- 分支机构 - 10顶部小贴士如何成为超级会员