Skip to content

Commit

Permalink
get native march info
Browse files Browse the repository at this point in the history
  • Loading branch information
charlie-foxtrot committed Jan 10, 2024
1 parent 0396bbb commit 6c4aa11
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ COPY CMakeLists.txt src /app/

# configure and build
# TODO: detect platforms
RUN cmake -B build_dir -DCMAKE_BUILD_TYPE=Release -DNFM=TRUE -DBUILD_UNITTESTS=TRUE && \
VERBOSE=1 cmake --build build_dir -j4
RUN echo | gcc -### -v -E - -march=native | tee /app/compiler_native_info.txt && \
cmake -B build_dir -DCMAKE_BUILD_TYPE=Release -DNFM=TRUE -DBUILD_UNITTESTS=TRUE && \
VERBOSE=1 cmake --build build_dir -j4

# make sure unit tests pass
RUN ./build_dir/unittests
Expand Down

0 comments on commit 6c4aa11

Please sign in to comment.