Commit 72d0b089 authored by Ian Humphrey's avatar Ian Humphrey
Browse files

re-add gold linker for only linux

parent 2f90412b
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -168,8 +168,11 @@ set(thirdPartyCppFlags -Wall


# Flag to fix numeric literals problem with boost on linux
# Add gold linker (and therefore, phtread) to speed up linux (spec. Ubuntu18.04) builds
if(NOT APPLE)
  set(thirdPartyCppFlags ${thirdPartyCppFlags} -fext-numeric-literals
  set(thirdPartyCppFlags ${thirdPartyCppFlags} -fuse-ld=gold
	                                       -pthread
					       -fext-numeric-literals
                                               -Wl,-rpath,$ENV{CONDA_PREFIX}/lib)
endif()