Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit e8b912c

Browse files
committed
Some fixes to the build system
1 parent 1fd81d0 commit e8b912c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

cmake/RemoveFlags.cmake

+5-3
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,10 @@ macro(remove_flag_from_file _target _file _flag)
7979
endif()
8080
endif()
8181
# Remove the specified flag, then re-apply the rest.
82-
list(REMOVE_ITEM _cached_${_target}_${_file}_cxx_flags ${_flag})
83-
string(REPLACE ";" " " _cached_${_target}_${_file}_cxx_flags_string "${_cached_${_target}_${_file}_cxx_flags}")
84-
set_source_files_properties(${_file} PROPERTIES COMPILE_FLAGS "${_cached_${_target}_${_file}_cxx_flags_string}")
82+
if (_cached_${_target}_${_file}_cxx_flags)
83+
list(REMOVE_ITEM _cached_${_target}_${_file}_cxx_flags ${_flag})
84+
string(REPLACE ";" " " _cached_${_target}_${_file}_cxx_flags_string "${_cached_${_target}_${_file}_cxx_flags}")
85+
set_source_files_properties(${_file} PROPERTIES COMPILE_FLAGS "${_cached_${_target}_${_file}_cxx_flags_string}")
86+
endif()
8587
endif()
8688
endmacro()

tools/archlinux/Dockerfile

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM base/archlinux
1+
FROM archlinux/base
22
MAINTAINER Edoardo Morassutto <[email protected]>
33

44
RUN mkdir -p /build
@@ -10,9 +10,7 @@ ENV UGID='2000' UGNAME='travis'
1010
# setup the system
1111
RUN groupadd --gid "$UGID" "$UGNAME" && \
1212
useradd --create-home --uid "$UGID" --gid "$UGID" "${UGNAME}" && \
13-
echo 'Server = http://mirrors.evowise.com/archlinux/$repo/os/$arch' > /etc/pacman.d/mirrorlist && \
14-
echo 'Server = http://mirror.rackspace.com/archlinux/$repo/os/$arch' >> /etc/pacman.d/mirrorlist && \
15-
echo 'Server = https://mirrors.kernel.org/archlinux/$repo/os/$arch' >> /etc/pacman.d/mirrorlist && \
13+
curl "https://www.archlinux.org/mirrorlist/?country=all&protocol=https&ip_version=4&ip_version=6&use_mirror_status=on" | sed 's/^#//g' > /etc/pacman.d/mirrorlist && \
1614
pacman -Syu --needed --noconfirm base-devel git sudo yajl && \
1715
pacman -Scc --noconfirm && \
1816
echo "travis ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/$UGNAME

0 commit comments

Comments
 (0)