How to build chromium with gcc 5.4.1

703 views
Skip to first unread message

Mu Ven

unread,
Jun 7, 2017, 10:28:16 AM6/7/17
to Chromium-dev
Im using c++ regex which needs gcc 5.4.1 support . Any help on how to build chrome with gcc 5.4.1 instead of 4.8 would be helpful.


Thanks,

Thiago Farina

unread,
Jun 7, 2017, 2:33:38 PM6/7/17
to muv...@gmail.com, Chromium-dev
On Wed, Jun 7, 2017 at 11:28 AM, Mu Ven <muv...@gmail.com> wrote:
Im using c++ regex which needs gcc 5.4.1 support . Any help on how to build chrome with gcc 5.4.1 instead of 4.8 would be helpful.

Have you tried modifying your CC and CXX environment variables? Have you tried anything else that didn't work?

I'm not sure many people do it nowadays, probably most devs when developing on Linux are using
clang that is provided by our current toolchain.

--
Thiago Farina

Tom Anderson

unread,
Jun 7, 2017, 7:25:26 PM6/7/17
to tfa...@chromium.org, muv...@gmail.com, Chromium-dev
On Wed, Jun 7, 2017 at 11:32 AM, Thiago Farina <tfa...@chromium.org> wrote:


On Wed, Jun 7, 2017 at 11:28 AM, Mu Ven <muv...@gmail.com> wrote:
Im using c++ regex which needs gcc 5.4.1 support . Any help on how to build chrome with gcc 5.4.1 instead of 4.8 would be helpful.

Have you tried modifying your CC and CXX environment variables? Have you tried anything else that didn't work?


Not sure if CC and CXX will work with ninja.  I think you can set is_clang=false in your args.gn and set your PATH to point to the gcc 5.4.1 binaries?
 
I'm not sure many people do it nowadays, probably most devs when developing on Linux are using
clang that is provided by our current toolchain.

--
Thiago Farina

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAFenBsYjaBt1P7uqBQF_mejBxHjLkQmoTX-0Z2uF31dSzpi_1A%40mail.gmail.com.

Yuta Kitamura

unread,
Jun 8, 2017, 1:55:20 AM6/8/17
to muv...@gmail.com, Chromium-dev
Try to set the following gn args:

is_clang = false
use_sysroot = false

If I remember correctly, that will call "gcc" and "g++" without any prefix and use the local system library, so this should work if your gcc 5.4.1 is available under the name "gcc" or "g++". There may be compile errors, though.

On Wed, Jun 7, 2017 at 11:28 PM, Mu Ven <muv...@gmail.com> wrote:
Im using c++ regex which needs gcc 5.4.1 support . Any help on how to build chrome with gcc 5.4.1 instead of 4.8 would be helpful.


Thanks,

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
Reply all
Reply to author
Forward
0 new messages