您好,登錄后才能下訂單哦!
在 Linux 平臺上,為 g++ 配置優化的預處理器設置可以通過以下步驟實現:
打開終端。
創建一個新的文本文件,例如 g++-優化.conf
,并使用文本編輯器(如 nano、vim 或 gedit)打開它。
在文件中添加以下內容:
# 設置預處理器宏
# 優化編譯速度
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-虛函數 -Wno-noexcept-虛析構函數 -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-虛函數 -Wno-noexcept-虛析構函數 -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-虛函數 -Wno-noexcept-虛析構函數 -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-虛函數 -Wno-noexcept-虛析構函數 -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-虛函數 -Wno-noexcept-虛析構函數 -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-虛函數 -Wno-noexcept-虛析構函數 -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-虛函數 -Wno-noexcept-虛析構函數 -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-虛函數 -Wno-noexcept-虛析構函數 -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-虛函數 -Wno-noexcept-虛析構函數 -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-虛函數 -Wno-noexcept-虛析構函數 -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-虛函數 -Wno-noexcept-虛析構函數 -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-虛函數 -Wno-noexcept-虛析構函數 -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-虛函數 -Wno-noexcept-虛析構函數 -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-虛函數 -Wno-noexcept-虛析構函數 -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-虛函數 -Wno-noexcept-虛析構函數 -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-虛函數 -Wno-noexcept-虛析構函數 -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-虛函數 -Wno-noexcept-虛析構函數 -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-虛函數 -Wno-noexcept-虛析構函數 -Wno-noexcept-override -Wno-noexcept-final -Wno-noexcept-delete -Wno-noexcept-delete-non-virtual -W
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。