Skip to content
Back to formatted view

Raw Message

Message-ID: <VI1PR03MB4687ACCACA1545093C529789981C0@VI1PR03MB4687.eurprd03.prod.outlook.com>
Date: 2018-09-19T09:11:58Z
From: HÃ¥kon Tjeldnes
Subject: [Bioc-devel] package c++ optimization flag

When I put this line in makevars:


PKG_CXXFLAGS = -O3


This is the output of the cpp precompiler:

 -O3 -fpic  -g -O2


I read the cpp doc, and it states:

"If you use multiple -O options, with or without level numbers, the last such option is the one that is effective."

Since, system wide R optimization -O2 always comes last, how can I make my package overwrite the system wide optimization ?
And should I do this at all, since debugging could get more difficult ?

	[[alternative HTML version deleted]]