您好,登錄后才能下訂單哦!
在 Linux 平臺(tái)上,為 g++ 配置優(yōu)化的預(yù)處理器設(shè)置可以通過(guò)以下步驟實(shí)現(xiàn):
打開(kāi)終端。
創(chuàng)建一個(gè)新的文本文件,例如 g++-優(yōu)化.conf
,并使用文本編輯器(如 nano、vim 或 gedit)打開(kāi)它。
在文件中添加以下內(nèi)容:
# 設(shè)置預(yù)處理器宏
# 優(yōu)化編譯速度
GCC_CXXFLAGS="-O2 -Wall -Wextra -Wno-unused-variable -Wno-unused-function -Wno-strict-aliasing -Wno-unknown-pragmas -Wno-shadow -Wno-sign-compare -Wno-float-equal -Wno-conversion -Wno-non-virtual-dtor -Wno-move-const-object -Wno-split-strings -Wno-long-long -Wno-uninitialized -Wno-unknown-condition -Wno-unused-result -Wno-parentheses -Wno-enum-compare -Wno-shorten-64-to-32 -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast -Wno-cast-qual -Wno-const-cast -Wno-function-template-args -Wno-non-template-functions -Wno-vla -Wno-array-bounds -Wno-trigraphs -Wno-char-subscripts -Wno-constexpr-not-constexpr -Wno-if-constexpr-condition -Wno-nested-namespace -Wno-noexcept-type-specifiers -Wno-noexcept-operator -Wno-noexcept-constant-condition -Wno-noexcept-placement -Wno-noexcept-return -Wno-noexcept-source-location -Wno-noexcept-function-type -Wno-noexcept-虛函數(shù) -Wno-noexcept-虛析構(gòu)函數(shù) -Wno-noexcept-override -Wno-noexcept-final -Wno-noexcept-delete -Wno-noexcept-delete-non-virtual -Wno-noexcept-delete-virtual -Wno-noexcept-move-assignment -Wno-noexcept-move-construction -Wno-noexcept-swap -Wno-noexcept-rethrow -Wno-noexcept-return-type -Wno-noexcept-source-location -Wno-noexcept-function-type -Wno-noexcept-虛函數(shù) -Wno-noexcept-虛析構(gòu)函數(shù) -Wno-noexcept-override -Wno-noexcept-final -Wno-noexcept-delete -Wno-noexcept-delete-non-virtual -Wno-noexcept-delete-virtual -Wno-noexcept-move-assignment -Wno-noexcept-move-construction -Wno-noexcept-swap -Wno-noexcept-rethrow -Wno-noexcept-return-type -Wno-noexcept-source-location -Wno-noexcept-function-type -Wno-noexcept-虛函數(shù) -Wno-noexcept-虛析構(gòu)函數(shù) -Wno-noexcept-override -Wno-noexcept-final -Wno-noexcept-delete -Wno-noexcept-delete-non-virtual -Wno-noexcept-delete-virtual -Wno-noexcept-move-assignment -Wno-noexcept-move-construction -Wno-noexcept-swap -Wno-noexcept-rethrow -Wno-noexcept-return-type -Wno-noexcept-source-location -Wno-noexcept-function-type -Wno-noexcept-虛函數(shù) -Wno-noexcept-虛析構(gòu)函數(shù) -Wno-noexcept-override -Wno-noexcept-final -Wno-noexcept-delete -Wno-noexcept-delete-non-virtual -Wno-noexcept-delete-virtual -Wno-noexcept-move-assignment -Wno-noexcept-move-construction -Wno-noexcept-swap -Wno-noexcept-rethrow -Wno-noexcept-return-type -Wno-noexcept-source-location -Wno-noexcept-function-type -Wno-noexcept-虛函數(shù) -Wno-noexcept-虛析構(gòu)函數(shù) -Wno-noexcept-override -Wno-noexcept-final -Wno-noexcept-delete -Wno-noexcept-delete-non-virtual -Wno-noexcept-delete-virtual -Wno-noexcept-move-assignment -Wno-noexcept-move-construction -Wno-noexcept-swap -Wno-noexcept-rethrow -Wno-noexcept-return-type -Wno-noexcept-source-location -Wno-noexcept-function-type -Wno-noexcept-虛函數(shù) -Wno-noexcept-虛析構(gòu)函數(shù) -Wno-noexcept-override -Wno-noexcept-final -Wno-noexcept-delete -Wno-noexcept-delete-non-virtual -Wno-noexcept-delete-virtual -Wno-noexcept-move-assignment -Wno-noexcept-move-construction -Wno-noexcept-swap -Wno-noexcept-rethrow -Wno-noexcept-return-type -Wno-noexcept-source-location -Wno-noexcept-function-type -Wno-noexcept-虛函數(shù) -Wno-noexcept-虛析構(gòu)函數(shù) -Wno-noexcept-override -Wno-noexcept-final -Wno-noexcept-delete -Wno-noexcept-delete-non-virtual -Wno-noexcept-delete-virtual -Wno-noexcept-move-assignment -Wno-noexcept-move-construction -Wno-noexcept-swap -Wno-noexcept-rethrow -Wno-noexcept-return-type -Wno-noexcept-source-location -Wno-noexcept-function-type -Wno-noexcept-虛函數(shù) -Wno-noexcept-虛析構(gòu)函數(shù) -Wno-noexcept-override -Wno-noexcept-final -Wno-noexcept-delete -Wno-noexcept-delete-non-virtual -Wno-noexcept-delete-virtual -Wno-noexcept-move-assignment -Wno-noexcept-move-construction -Wno-noexcept-swap -Wno-noexcept-rethrow -Wno-noexcept-return-type -Wno-noexcept-source-location -Wno-noexcept-function-type -Wno-noexcept-虛函數(shù) -Wno-noexcept-虛析構(gòu)函數(shù) -Wno-noexcept-override -Wno-noexcept-final -Wno-noexcept-delete -Wno-noexcept-delete-non-virtual -Wno-noexcept-delete-virtual -Wno-noexcept-move-assignment -Wno-noexcept-move-construction -Wno-noexcept-swap -Wno-noexcept-rethrow -Wno-noexcept-return-type -Wno-noexcept-source-location -Wno-noexcept-function-type -Wno-noexcept-虛函數(shù) -Wno-noexcept-虛析構(gòu)函數(shù) -Wno-noexcept-override -Wno-noexcept-final -Wno-noexcept-delete -Wno-noexcept-delete-non-virtual -Wno-noexcept-delete-virtual -Wno-noexcept-move-assignment -Wno-noexcept-move-construction -Wno-noexcept-swap -Wno-noexcept-rethrow -Wno-noexcept-return-type -Wno-noexcept-source-location -Wno-noexcept-function-type -Wno-noexcept-虛函數(shù) -Wno-noexcept-虛析構(gòu)函數(shù) -Wno-noexcept-override -Wno-noexcept-final -Wno-noexcept-delete -Wno-noexcept-delete-non-virtual -Wno-noexcept-delete-virtual -Wno-noexcept-move-assignment -Wno-noexcept-move-construction -Wno-noexcept-swap -Wno-noexcept-rethrow -Wno-noexcept-return-type -Wno-noexcept-source-location -Wno-noexcept-function-type -Wno-noexcept-虛函數(shù) -Wno-noexcept-虛析構(gòu)函數(shù) -Wno-noexcept-override -Wno-noexcept-final -Wno-noexcept-delete -Wno-noexcept-delete-non-virtual -Wno-noexcept-delete-virtual -Wno-noexcept-move-assignment -Wno-noexcept-move-construction -Wno-noexcept-swap -Wno-noexcept-rethrow -Wno-noexcept-return-type -Wno-noexcept-source-location -Wno-noexcept-function-type -Wno-noexcept-虛函數(shù) -Wno-noexcept-虛析構(gòu)函數(shù) -Wno-noexcept-override -Wno-noexcept-final -Wno-noexcept-delete -Wno-noexcept-delete-non-virtual -Wno-noexcept-delete-virtual -Wno-noexcept-move-assignment -Wno-noexcept-move-construction -Wno-noexcept-swap -Wno-noexcept-rethrow -Wno-noexcept-return-type -Wno-noexcept-source-location -Wno-noexcept-function-type -Wno-noexcept-虛函數(shù) -Wno-noexcept-虛析構(gòu)函數(shù) -Wno-noexcept-override -Wno-noexcept-final -Wno-noexcept-delete -Wno-noexcept-delete-non-virtual -Wno-noexcept-delete-virtual -Wno-noexcept-move-assignment -Wno-noexcept-move-construction -Wno-noexcept-swap -Wno-noexcept-rethrow -Wno-noexcept-return-type -Wno-noexcept-source-location -Wno-noexcept-function-type -Wno-noexcept-虛函數(shù) -Wno-noexcept-虛析構(gòu)函數(shù) -Wno-noexcept-override -Wno-noexcept-final -Wno-noexcept-delete -Wno-noexcept-delete-non-virtual -Wno-noexcept-delete-virtual -Wno-noexcept-move-assignment -Wno-noexcept-move-construction -Wno-noexcept-swap -Wno-noexcept-rethrow -Wno-noexcept-return-type -Wno-noexcept-source-location -Wno-noexcept-function-type -Wno-noexcept-虛函數(shù) -Wno-noexcept-虛析構(gòu)函數(shù) -Wno-noexcept-override -Wno-noexcept-final -Wno-noexcept-delete -Wno-noexcept-delete-non-virtual -Wno-noexcept-delete-virtual -Wno-noexcept-move-assignment -Wno-noexcept-move-construction -Wno-noexcept-swap -Wno-noexcept-rethrow -Wno-noexcept-return-type -Wno-noexcept-source-location -Wno-noexcept-function-type -Wno-noexcept-虛函數(shù) -Wno-noexcept-虛析構(gòu)函數(shù) -Wno-noexcept-override -Wno-noexcept-final -Wno-noexcept-delete -Wno-noexcept-delete-non-virtual -Wno-noexcept-delete-virtual -Wno-noexcept-move-assignment -Wno-noexcept-move-construction -Wno-noexcept-swap -Wno-noexcept-rethrow -Wno-noexcept-return-type -Wno-noexcept-source-location -Wno-noexcept-function-type -Wno-noexcept-虛函數(shù) -Wno-noexcept-虛析構(gòu)函數(shù) -Wno-noexcept-override -Wno-noexcept-final -Wno-noexcept-delete -Wno-noexcept-delete-non-virtual -W
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。